This is my first experience with 10.04. Previously I have had no problems telling mysql to use an alternate location for data files, by editing my.cnf and restarting mysql. Always seemed pretty straightforward. But this does not work on 10.04, and I gather from the errors in syslog this is some kind of apparmor issue.<div>
<br></div><div>What I have done:</div><div><br></div><div> stop mysql</div><div> edit my.cnf to reference new location</div><div> created the desired directory on a faster drive array</div><div> mirrored the permissions/ownership and content at the new location </div>
<div> edited the /etc/apparmor.d/usr.sbin.mysqld with the appropriate values</div><div> restarted apparmor</div><div> start mysql</div><div><br></div><div>But mysql never really starts and just hangs trying. This are the current log entries from syslog:</div>
<div><br></div><div><br></div><div><div><div>Sep 26 11:12:05 pandora kernel: [500997.464100] type=1505 audit(1285513925.352:142):  operation="profile_replace" pid=21887 name="/usr/sbin/mysqld"</div></div>
<div><div>Sep 26 11:12:06 pandora init: mysql main process (21891) terminated with status 2</div><div>Sep 26 11:12:06 pandora init: mysql main process ended, respawning</div><div><br></div><div>And that goes on forever. </div>
<div><br></div><div>I haven't found a solution on google yet to figure this out. Obviously I am missing a step, but what? Also, how to get better log messages from apparmor?</div><div><br></div><div>Thanks.</div><div>
<br></div><div><br></div>-- <br>Hal<br>
</div></div>