
MySQL database storage path change
Mysql data storage path modification /
Find the Mysql configuration file
find / -name 'my.cnf'
Edit the following code
datadir = /data/mysql
/data/mysql is the new path directory for mysql data storage.
Copy the original data to the new directory
cp -R /var/data/mysql/* /data/mysql
tips:you should be stop mysql service first
💘 相关文章
- mysql database connection failed | SQLSTATE[HY000] [2002] Connection refused solution
- Personal blog database selection, mysql vs sqlite?
- Implementation method of regular backup of MySQL database
- Tetua - an open source lightweight cms program based on golang and mysql, with installation and configuration
- Starting MySQL... ERROR! ……quit without updating PID file (/opt/mysql/data/mysql.pid)解決方法
- 一次mysql安装的折腾记录解决方法
- MySQL remote connection configuration method under docker container
- 轻量级的Php mysql web 管理客户端程序Adminer
- 又一款基于golang,MySQL的开源论坛程序。。。
- buyvm添加块存储Block Storage的方法