Moving MySQL directory

Bidi

Well-Known Member
Oct 3, 2012
101
6
68
Romania, Transilvania
cPanel Access Level
DataCenter Provider
I do not understand i made

mkdir /home/mysql
cp -R /var/lib/mysql /home/mysql
mv /var/lib/mysql /var/lib/mysql_bk
chown -R mysql:mysql /home/mysql/mysql
ln -s /home/mysql/mysql /var/lib/mysql
/etc/init.d/mysql start

Before i stoped mysql and monitor for it and nothink worked, after mv mysql_bk mysql and starting backup mysql was all working.

Is sompting wrong i made ?
 
Last edited: