mysql is dead but subsys locked

后端 未结 9 696
一个人的身影
一个人的身影 2020-12-24 03:04

I am using PHP-mysql on Linux (RHEL 5.0) For First Time
When I tried to connect to MySQL from my PHP Script using mysqli_connect.
It Displayed

9条回答
  •  遥遥无期
    2020-12-24 03:20

    I had this problem with my OTRS server after I tried to update a to large package.

    The solution was:

    copy for safty:

    cp /var/lock/subsys/mysqld /root/mysqld
    

    than delete it

    rm /var/lock/subsys/mysqld
    

    than close all services that depends on mysql:

    service httpd stop
    service otrs stop
    

    after that:

    service mysqld restart
    service httpd restart
    service otrs restart
    

    System is CentOS 6.x

提交回复
热议问题