start mysql service after getting faile by operating system 13 ERROR
=================================================================================
First, here's the quick version of this post: If you want to relocate the data directory in MySQL (in this example, to the /data/directory), and AppArmor is not letting you, add the following two lines to the bottom of /etc/apparmor.d/local/usr.sbin.mysqld:
/data/ r,
/data/** rwk,
...and then reload the AppArmor profiles:
# service apparmor reload
=================================================================================
First, here's the quick version of this post: If you want to relocate the data directory in MySQL (in this example, to the /data/directory), and AppArmor is not letting you, add the following two lines to the bottom of /etc/apparmor.d/local/usr.sbin.mysqld:
/data/ r,
/data/** rwk,
...and then reload the AppArmor profiles:
# service apparmor reload