
1. Remove MySQL from AppArmor's protection:

sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld


2. Re-add MySQL back to AppArmor's protection:

sudo rm /etc/apparmor.d/disable/usr.sbin.mysqld
sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.mysqld
sudo aa-status

Add a note about AppArmor in Ubuntu
Add a note about AppArmor in Ubuntu
