ITPub博客

首页 > 数据库 > MySQL > mysql起动报错The server quit without updating PID file (/usr/local/mysql/data/

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

MySQL 作者:千寻ccxx 时间:2016-12-12 14:59:33 0 删除 编辑
    
        

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



重新配置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

user = mysql

tmpdir = /tmp

#保存退出

#初始化数据库


./mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/mysql.pid --tmpdir=/tmp


[root@localhost scripts]# service mysqld restart

Shutting down MySQL.                                       [确定]

Starting MySQL..                                                 [确定]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31401161/viewspace-2130293/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2016-10-10

  • 博文量
    186
  • 访问量
    141030