Comment 4 for bug 986892

Revision history for this message
Geoff (geoffch) wrote : Re: Error in AppArmor rule for mysqld

I fixed the apparmor problem by copying /etc/apparmor.d/local/usr.sbin.mysqld from another machine that was not yet upgraded (this file is empty excepet for a comment). However, mysql doesn't start properly even so, and repeatedly respawns until init stops it:

May 2 16:23:02 rocky kernel: [ 2036.363661] init: mysql main process ended, respawning
May 2 16:23:02 rocky kernel: [ 2036.377177] type=1400 audit(1335997382.943:39): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=4578 comm="apparmor_parser"
May 2 16:23:05 rocky /etc/mysql/debian-start[4691]: Upgrading MySQL tables if necessary.
May 2 16:23:05 rocky /etc/mysql/debian-start[4694]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored
May 2 16:23:05 rocky /etc/mysql/debian-start[4694]: Looking for 'mysql' as: /usr/bin/mysql
May 2 16:23:05 rocky /etc/mysql/debian-start[4694]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
May 2 16:23:05 rocky /etc/mysql/debian-start[4694]: This installation of MySQL is already upgraded to 5.5.22, use --force if you still need to run mysql_upgrade
May 2 16:23:05 rocky /etc/mysql/debian-start[4705]: Checking for insecure root accounts.
May 2 16:23:05 rocky /etc/mysql/debian-start[4710]: Triggering myisam-recover for all MyISAM tables
May 2 16:23:05 rocky kernel: [ 2038.631553] init: mysql main process (4585) terminated with status 1
May 2 16:23:05 rocky kernel: [ 2038.631632] init: mysql respawning too fast, stopped.