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

How to hang disk in Mysql

藏色散人
Release: 2020-03-07 09:24:44
forward
1774 people have browsed it

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
Copy after login

Move data:

mv /var/lib/mysql/* /home/mysql/
Copy after login

Create soft connection:

ln -s /home/mysql/ /var/lib/mysql/
Copy after login

Start mysql:

/etc/init.d/mysqld start
Copy after login

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template