I have got into this problem after purge reinstallation of mysql server 5.5 in precise as well.
It has been working for some time until I have created new database and couple of tables I could not restart database.
I have got this error:
Jun 2 19:34:35 PCEUBU1 kernel: [38487.429346] type=1400 audit(1338662075.109:540): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=32449 comm="apparmor_parser"
Jun 2 19:34:35 PCEUBU1 kernel: [38487.435393] init: mysql main process (32453) terminated with status 1
Jun 2 19:34:35 PCEUBU1 kernel: [38487.435405] init: mysql respawning too fast, stopped
I do not have any "DENIED" within apparmor in dmesg.
I switched /usr/sbin/mysqld into complain mod and /etc/apparmor.d/usr.sbin.mysqld contains:
I have got into this problem after purge reinstallation of mysql server 5.5 in precise as well.
It has been working for some time until I have created new database and couple of tables I could not restart database.
I have got this error:
Jun 2 19:34:35 PCEUBU1 kernel: [38487.429346] type=1400 audit(133866207 5.109:540) : apparmor="STATUS" operation= "profile_ replace" name="/ usr/sbin/ mysqld" pid=32449 comm="apparmor_ parser"
Jun 2 19:34:35 PCEUBU1 kernel: [38487.435393] init: mysql main process (32453) terminated with status 1
Jun 2 19:34:35 PCEUBU1 kernel: [38487.435405] init: mysql respawning too fast, stopped
I do not have any "DENIED" within apparmor in dmesg. d/usr.sbin. mysqld contains:
I switched /usr/sbin/mysqld into complain mod and /etc/apparmor.
/usr/sbin/mysqld flags=(complain) { nameservice> user-tmp> mysql> winbind>
#include <abstractions/base>
#include <abstractions/
#include <abstractions/
#include <abstractions/
#include <abstractions/
capability dac_override,
capability sys_resource,
capability setgid,
capability setuid,
network tcp,
/etc/hosts.allow r,
/etc/hosts.deny r,
/etc/mysql/*.pem r, mysql/conf. d/ r, mysql/conf. d/* r, lib/mysql/ plugin/ r, lib/mysql/ plugin/ *.so* mr, share/mysql/ ** r, log/mysql. log rw, log/mysql. err rw, run/mysqld/ mysqld. pid w, run/mysqld/ mysqld. sock w, mysqld/ mysqld. pid w, mysqld/ mysqld. sock w,
/etc/
/etc/
/etc/mysql/*.cnf r,
/usr/
/usr/
/usr/sbin/mysqld mr,
/usr/
/var/
/var/
/var/lib/mysql/ r,
/var/lib/mysql/** rwk,
/var/log/mysql/ r,
/var/log/mysql/* rw,
/var/
/var/
/run/
/run/
/sys/ devices/ system/ cpu/ r,
but it did not allow to start mysqld.
any sollution ? (I would not like to reinstall it again - I still would like to put my backuped databases back)
thank you,
kind regards,
M.