mysql数据存储路径修改
mysql数据存储路径修改/
查找Mysql配置文件
find / -name 'my.cnf'
编辑以下代码
datadir = /data/mysql
/data/mysql为mysql数据存储的新路径目录。
复制原来的数据到新目录
cp -R /var/data/mysql/* /data/mysql
为了确保数据的唯一性,建议先停止mysql服务器进行迁移
💘 相关文章
- Tetua - an open source lightweight cms program based on golang and mysql, with installation and configuration
- Tetua-基于golang和mysql的开源轻量级cms程序,附上安装和配置教程
- mysql免密码使用的记录点滴
- mysql批量替換數據庫字符的方法
- nginx 反向代理后端并缓存数据的方法
- .db数据文件编辑器-sqlitebrowser
- mysql严格模式引起1364 错误提示的處理過程的一些坑
- Starting MySQL... ERROR! ……quit without updating PID file (/opt/mysql/data/mysql.pid)解決方法
- mysql database connection failed | SQLSTATE[HY000] [2002] Connection refused solution
- Tetua-Open source lightweight cms program configuration github login tutorial based on golang and mysql