Comment 0 for bug 986892

Revision history for this message
Alex Fomenko (falex007) wrote : Error in AppArmor rule for mysqld

After upgrading from Kubuntu 11.10 to 12.04 beta I found that mysql isn't running after booting the system

In the syslog there is the following row
Apr 22 18:04:13 deathworld kernel: [ 15.848658] init: mysql pre-start process (1033) terminated with status 1

I've tried to execute /etc/init/mysql.conf step by step and found that execution
/lib/init/apparmor-profile-load usr.sbin.mysqld
shows the following error:
AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld at line 44: Could not open 'local/usr.sbin.mysqld'
It's line:
#include <local/usr.sbin.mysqld>

After removing this line mysql can start without any problems

Description: Ubuntu 12.04 LTS
Release: 12.04