码迷,mamicode.com
首页 > 数据库 > 详细

Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/vm10-0-0-19

时间:2018-10-04 23:04:17      阅读:591      评论:0      收藏:0      [点我收藏+]

标签:出现   rip   ase   word   my.cnf   pre   ble   erro   href   

 输入:service mysqld start 

报错:

 Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/vm10-0-0-19.ksc.com.pid).

解决: ./scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql/ --datadir=/usr/local/mysql/data/

参考博客:在Centos上安装MySQL时出现这样的错误:Starting MySQL.. ERROR! The server quit without updating PID file (/usr/loca

输入:service mysqld start

报错:

Warning: World-writable config file ‘/etc/my.cnf‘ is ignored
Starting MySQL.Warning: World-writable config file ‘/etc/my.cnf‘ is ignored
Warning: World-writable config file ‘/etc/my.cnf‘ is ignored

 ERROR! The server quit without updating PID file (/usr/local/mysql/data/vm10-0-0-19.ksc.com.pid).

出现这种情况的原因是:mysql故意不让用户重写my.cnf,权限默认是644, 即-rw-r--r--, 如果权限不是644, 则会出现这种情况。

那就改:chmod 644 /etc/my.cnf  

参考博客:Warning: World-writable config file ‘/etc/my.cnf‘ is ignored


3:输入: mysql -uroot -p

报错:

Enter password:

ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘ (2)

我的解决办法:ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock


Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/vm10-0-0-19

标签:出现   rip   ase   word   my.cnf   pre   ble   erro   href   

原文地址:https://www.cnblogs.com/jpfss/p/9743616.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!