美文网首页
解决MySQL is running but PID file

解决MySQL is running but PID file

作者: 周_0717 | 来源:发表于2020-02-18 21:28 被阅读0次

    执行:sudo mysql.server status

    报错:ERROR! MySQL is running but PID file could not be found

    原因:mysql进程异常

    解决办法:找到并kill掉所有关于mysql的进程

    执行==》ps -ef  | grep mysql  查看相关进程

    执行==》kill 进程号

     启动MySQL服务

            sudo /usr/local/mysql/support-files/mysql.server start

    停止MySQL服务

            sudo /usr/local/mysql/support-files/mysql.server stop

    重启MySQL服务

            sudo /usr/local/mysql/support-files/mysql.server restart        

    相关文章

      网友评论

          本文标题:解决MySQL is running but PID file

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