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.
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 2.943:39) : apparmor="STATUS" operation= "profile_ replace" name="/ usr/sbin/ mysqld" pid=4578 comm="apparmor_ parser" debian- start[4691] : Upgrading MySQL tables if necessary. debian- start[4694] : /usr/bin/ mysql_upgrade: the '--basedir' option is always ignored debian- start[4694] : Looking for 'mysql' as: /usr/bin/mysql debian- start[4694] : Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck debian- start[4694] : This installation of MySQL is already upgraded to 5.5.22, use --force if you still need to run mysql_upgrade debian- start[4705] : Checking for insecure root accounts. debian- start[4710] : Triggering myisam-recover for all MyISAM tables
May 2 16:23:02 rocky kernel: [ 2036.377177] type=1400 audit(133599738
May 2 16:23:05 rocky /etc/mysql/
May 2 16:23:05 rocky /etc/mysql/
May 2 16:23:05 rocky /etc/mysql/
May 2 16:23:05 rocky /etc/mysql/
May 2 16:23:05 rocky /etc/mysql/
May 2 16:23:05 rocky /etc/mysql/
May 2 16:23:05 rocky /etc/mysql/
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.