[乐意黎原创]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'.


解决方法:

[[email protected] ~]#cd/usr/local/MysqL

[[email protected]MysqL]#mkdir logs

[[email protected] MysqL]# echo "" > /usr/local/MysqL/logs/MysqLd.log
[[email protected] MysqL]# chown -R MysqL:MysqL /usr/local/MysqL/logs/MysqLd.log
[[email protected] MysqL]# service MysqLd start
Starting MysqL... [ OK ]



乐意黎原创

2018-06-25

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native