#180111mysql启动错误

2018-01-12 11:15:54来源:oschina作者:hellopasswd人点击

分享

报错


[root@localhost mysql]# /etc/init.d/mysqld start
Starting MySQL.180111 16:41:43 mysqld_safe error: log-error set to '/var/log/mariadb/mariadb.log', however file don't exists. Create writable for user 'mysql'.
ERROR! The server quit without updating PID file (/data/mysql/localhost.localdomain.pid).
05:48

解决方法


[root@localhost mysql]# vi /etc/my.cnf
注释
12 #log-error=/var/log/mariadb/mariadb.log
13 #pid-file=/var/run/mariadb/mariadb.pid
18 #!includedir /etc/my.cnf.d

最新文章

123

最新摄影

闪念基因

微信扫一扫

第七城市微信公众平台