
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
💘 相关文章
- Implementation method of regular backup of MySQL database
- mysql database connection failed | SQLSTATE[HY000] [2002] Connection refused solution
- Personal blog database selection, mysql vs sqlite?
- Starting MySQL... ERROR! ……quit without updating PID file (/opt/mysql/data/mysql.pid)解決方法
- MySQL在Mac系統通過brew安裝以及重啟的方法
- docker容器下的MySQL远程连接配置方法
- 个人博客数据库选择,mysql vs sqlite?
- 一次mysql安装的折腾记录解决方法
- mysql error 1364 Field doesn't have a default values的解決方法
- 一款强大的开源国产图床系统,基于PHP,MySQL