
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?
- Implementation method of regular backup of MySQL database
- mysql 8 修改用户名密码的命令
- Tetua-基于golang和mysql的开源轻量级cms程序配置github登录教程
- Mac Os 系統下php mysql 集成开发环境工具mdserver
- 一款强大的开源国产图床系统,基于PHP,MySQL
- 又一款基于golang,MySQL的开源论坛程序。。。
- mysql严格模式引起1364 错误提示的處理過程的一些坑
- 'ldconfig' not found in PATH or not executable解决方法
- Tetua - an open source lightweight cms program based on golang and mysql, with installation and configuration