如题,Centos下的MysqL配置过 /etc/my.cnf 后,
service MysqLd start 启动时抛:
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