Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Moving MySQL from default folder to home folder or any disc space in Debian


If the MySQL service not stop then you most Stop the service of MySQL before doing anything

First we will create folders that we will used for MySQL, we most create 3 important folders like the following:

Next we will copy the MySQL files from the source folder `/var/lib` to our created folder.

Note: don't remove the source folders after you finish the steps

Then in MySQL config file we will change the following:

Finally restart MySQL service and enjoy ^_^.


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.