AppArmor in Linux
This note is a reminder that there is something called AppArmor that could cause weird errors ("File not found", "Can't open file or directory", ...) after configuration changes, e.g. when changing MySQL's data directory.
Remember to have a look at AppArmor's daemon configuration (usually at
/etc/apparmor.d/) if you change daemon configuration and run into errors such as the one above.