You'll need to add a rule in /etc/apparmor.d/usr.sbin.mysqld to allow mysqld
access to your chosen datadir.  Something like

/opt/mysqld/** rwk,

underneath the line:

/var/lib/mysqld/* rwk,

-- 
[lucid] MySQL fails to install db (mysql_install_db) in specified directory due 
to AppArmor
https://bugs.launchpad.net/bugs/597490
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to