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
💘 相关文章
- Personal blog database selection, mysql vs sqlite?
- mysql database connection failed | SQLSTATE[HY000] [2002] Connection refused solution
- Implementation method of regular backup of MySQL database
- 一次mysql安装的折腾记录解决方法
- MySQL remote connection configuration method under docker container
- 收藏:MySQL 數值型函數大全
- Change the user's home directory for centos
- docker容器下的MySQL远程连接配置方法
- Tetua - an open source lightweight cms program based on golang and mysql, with installation and configuration
- 轻量级的Php mysql web 管理客户端程序Adminer