moving mysql data directory
In some cases you have to change the default MySql data directory, for doing this you have to follow some steps. Here I will explain each steps one by one.
Stop MySql server using following command.
$ sudo /etc/init.d/mysql stop
Copy the existing data directory (which is located inĀ /var/lib/mysql) using following command.
$ sudo ...
0
Posted by Shahid