MySQL issues in Hardy Heron
I couldn’t get MySQL to start in Ubuntu 8.04 Hardy Heron after I changed my datadir to /nexus/tardis/mysql – it turns out I needed to change the AppArmor configuration like so: /etc/apparmor.d/usr.sbin.mysqld /var/lib/mysql/ r, /var/lib/mysql/** rwk, /nexus/tardis/mysql/** rwk, /nexus/tardis/mysql/ r, This was in response to the following syslog messages: /var/log/syslog Apr 12 00:30:59 tardis mysqld[17818]: 080412 0:30:59 [ERROR] /usr/sbin/mysqld: Can’t find file: ‘./mysql/host.frm’ (errno: 13) Apr 12 00:30:59 tardis mysqld[17818]: 080412 0:30:59 [ERROR] Fatal error: Can’t open and lock privilege [...]

