[乐意黎原创]Centos里MySQL抛 Create writable for user 'mysql'

前端之家收集整理的这篇文章主要介绍了[乐意黎原创]Centos里MySQL抛 Create writable for user 'mysql'前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
如题,Centos下的MysqL配置过 /etc/my.cnf 后,
service MysqLd start 启动时抛:

Starting MysqL.2018-06-25T01:34:24.931194Z MysqLd_safe error: log-error set to '/usr/local/MysqL/logs/MysqLd.log',however file don't exists. Create writable for user 'MysqL'.


解决方法:

[root@aerchi.com ~]#cd/usr/local/MysqL

[root@aerchi.comMysqL]#mkdir logs

[root@aerchi.com MysqL]# echo "" > /usr/local/MysqL/logs/MysqLd.log
[root@aerchi.com MysqL]# chown -R MysqL:MysqL /usr/local/MysqL/logs/MysqLd.log
[root@aerchi.com MysqL]# service MysqLd start
Starting MysqL... [ OK ]



乐意黎原创

2018-06-25

原文链接:/centos/374182.html

猜你在找的CentOS相关文章