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


猜你喜欢

转载自blog.csdn.net/aerchi/article/details/80797439