美文网首页mysql
mysql起动报错The server quit without

mysql起动报错The server quit without

作者: WXL_JIANSHU | 来源:发表于2018-03-15 12:41 被阅读47次

mysql起动报错The server quit without updating PID file (/usr/local/mysql/data/

查看错误日志显示:

mysqld_safe mysqld from pid file /usr/local/mysql/data/mysql.pid ended

肯定是配置文件问题:

新安装的测试机

hostname server01

centos 6.5

环境 mysql 5.6.12 单机 64位 二进制包安装

my.cnf 里面只有一个【mysqld】

里面为空所以要报错。(5.5 里面有很多东西)

重新配置vi /etc/my.cnf 加入

在[mysqld]中添加:

datadir = /usr/local/mysql/data #添加

log-error = /usr/local/mysql/data/error.log #添加

pid-file = /usr/local/mysql/data/mysql.pid #注释掉

tmpdir = /var/tmp #不建议放在/tmp下

保存退出

[root@localhost scripts]# service mysqld restart

相关文章

网友评论

    本文标题:mysql起动报错The server quit without

    本文链接:https://www.haomeiwen.com/subject/fvfhqftx.html