启动Mysql是报错

[root@pc mysql]# mysql start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@pc mysql]# service mysql start
Starting MySQL.......................................................................................................The server quit without updating PID file (/var/lib/mysql/pc.pid).

 

原因是 mysql重复启动,上次启动未关闭mysql 

ps -ef | grep mysql    查看运行的mysql进程       kill   -9   进程号     杀死进程、

 

在使用 service mysql start   启动mysql即可

 

相关文章:

  • 2021-10-11
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-02
  • 2022-01-26
  • 2021-05-19
  • 2022-12-23
  • 2022-02-28
相关资源
相似解决方案