1- Make a copy of all databases to the new directory.
2- Change the dat
adir configuration on /etc/mysql.my.cnf3- Change /etc/apparmor.d/usr.sbin.mysqld so the old data dir is no longer there.
4- Reload Apparmor daemon.
5- Verify ownership and pem on new data dir.
6- Restart MySQL
You can follow this blog http://blog.taragana.com/index.php/archive/how-to-move-the-mysql-data-directory-in-ubuntu/ for more detailed instructions.
Enjoy it...
Excellent post and writing style. Bookmarked.
ReplyDelete