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
Preface I believe that in the process of mobile t...
1: masterha_check_repl replica set error replicat...
Most of the time, plug-ins are used to upload fil...
I recently helped someone with a project and the ...
For reference only for Python developers using Ub...
This article shares the specific code of the pull...
Preface Recently connected to mysql /usr/local/my...
1. Download the download link Click download. You...
Preface Tomcat is a widely used Java web containe...
Requirement: Celery is introduced in Django. When...
In the past two days, I have been very troubled t...
Selector Grouping Suppose you want both the h2 el...
Find the problem I recently migrated the storage ...
1 Requirements Overview The data of multiple tabl...
Docker Features 1) Quick to get started It only t...