How to mount Mysql?
Use the soft connection method under Linux. The specific operations are as follows: (Take migrating to the /home/mysql/ directory as an example)
Recommendation: "mysql tutorial》
Stop mysql first:
/etc/init.d/mysqld stop
Move data:
mv /var/lib/mysql/* /home/mysql/
Create soft connection:
ln -s /home/mysql/ /var/lib/mysql/
Start mysql:
/etc/init.d/mysqld start
is enough.
The above is the detailed content of How to hang disk in Mysql. For more information, please follow other related articles on the PHP Chinese website!