mariabdb 修改数据库目录

1、停止mysql
2、mv /var/lib/mysql/ /home/data
3、chown mysql:mysql /home/data/mysql/ -R
4、chmod 777 /home/data/mysql/ -r
5、修改nano /etc/mysql/mariadb.conf.d/50-server.cnf 中datadir
6、修改/lib/systemd/system/mariadb.service protecthome=false

添加一个评论

Comments can be formatted using a simple wiki syntax.

这篇文章的评论 feed

Powered by Dotclear | Original theme by N.Design Studio - Adapted by Pixials and Pierre Van Glabeke

文章 feed 评论 feed