Advertisement
Guest User

Untitled

a guest
May 24th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Stop MySQL: sudo /etc/init.d/mysql stop
  2. Copy the existing data directory: sudo cp -R -p /var/lib/mysql /path/to/new/datadir
  3. Edit the MySQL configuration file: gksu gedit /etc/mysql/my.cnf
  4. And the configuration for AppArmor: sudo gedit /etc/apparmor.d/usr.sbin.mysqld
  5. Restart AppArmor: sudo /etc/init.d/apparmor reload
  6. Restart MySQL: sudo /etc/init.d/mysql restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement