Moving MySQL directory
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 ?
-
Hello, You may find the workaround instructions on the following thread helpful: The proper way to move MySQL to a second drive. Thank you. 0
Please sign in to leave a comment.
Comments
1 comment