mirnshi:apparmor_and_mysql_on_ubuntu
apparmor and mysql on ubuntu
The default data directory is /var/lib/mysql. How to change to a new directory, such as /data?
- stop mysql
- move /var/lib/mysql /data
- modify /etc/apparmor.d/usr.sbin.mysqld, /var/lib/mysql to /data/mysql
- restart apparmor
- start mysql
mirnshi/apparmor_and_mysql_on_ubuntu.txt · Last modified: 2009/04/15 02:53 by mirnshi
Discussion