User Tools

Site Tools


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?

  1. stop mysql
  2. move /var/lib/mysql /data
  3. modify /etc/apparmor.d/usr.sbin.mysqld, /var/lib/mysql to /data/mysql
  4. restart apparmor
  5. start mysql

Discussion

, BrBeuCSJRHoJDPsGgiY, 2012/01/06 06:58

Hey, you're the goto expert. Thanks for hnaigng out here.

Enter your comment. Wiki syntax is allowed:
 
mirnshi/apparmor_and_mysql_on_ubuntu.txt · Last modified: 2009/04/15 02:53 by mirnshi