How to implement Mysql switching data storage directory Today, I encountered at work that the partition space where mysql is stored has been used up, resulting in mysql being unable to start normally. For this reason, I had to migrate the data storage directory. 1. Transfer the existing data storage directory to another storage space. Today, it took more than 30 minutes to copy a 50G data file, which was a bit slow. 2. Modify the my.cf configuration file Modify the storage directory [mysqld] datadir=/home/mysql socket=/home/mysql/mysql.sock [mysql_safe] pid-file=/home/mysql/mysqld.pid Added [mysql] socket=/home/mysql/mysql.sock 3. Be sure to pay attention to modifying the permissions of the data storage directory, especially when mysql_safe pid home/mysql/mysqld.pid* ended Similar exceptions Thank you for reading, I hope it can help you, thank you for your support of this site! You may also be interested in:
|
<<: A brief discussion on why daemon off is used when running nginx in docker
>>: A brief talk about React Router's history
Gtid + Mha + Binlog server configuration: 1: Test...
Table of contents Requirement Description Problem...
MySQL-Group-Replication is a new feature develope...
If you don't have a Linux system, please refe...
Achieve resultsRequirements/Functionality: How to...
Table of contents 1. Communication between father...
Introduction to IPSec IPSec (Internet Protocol Se...
I often see some circular wave graphics on mobile...
Recently, I found that after using the docker loa...
Table of contents 1. Easy to use 2. Using generic...
Table of contents Preface Background Implementati...
Prepare a CentOS6 installation disk (any version)...
By default, Docker runs over a non-networked UNIX...
When programmers do TypeScript/JavaScript develop...
summary In some scenarios, there may be such a re...