Home  >  Article  >  Database  >  How to hang disk in Mysql

How to hang disk in Mysql

藏色散人
藏色散人forward
2020-03-07 09:24:441620browse

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!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete