zoukankan      html  css  js  c++  java
  • mysql 启动错误-server PID file could not be found

    [root@centos var]# service mysqld stop

    MySQL manager or server PID file could not be found!       [FAILED]
    解决办法:
    首先查看一下进程
    [root@irxpert-test /]# ps aux |grep mysq*
    root     10274  0.0  0.0  68160  1336 ?        S    13:43   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/irxpert-test.pid
    mysql    10353  0.0  1.0 344360 39464 ?        Sl   13:43   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/irxpert-test.err --pid-file=/var/lib/mysql/irxpert-test.pid
    root     11884  0.0  0.0  63384   760 pts/1    S+   15:44   0:00 grep mysq*
    如果看到上面的内容,那说明,Mysql的进程卡死了,这时用就要把这些卡死的进程都关闭
    [root@centos mysql]# kill 10274
    [root@centos mysql]# kill 10353
    启动Mysqlok
    [root@centos mysql]# service mysql start
    Starting MySQL.                                            [  OK  ]
  • 相关阅读:
    C语言字符编码处理
    Linux gperf命令
    C语言命令行处理
    深入分析Java ClassLoader原理
    微软Build2016:Xamarin杂记
    Ubuntu下配置Tomcat以指定(非root)身份执行
    Android之弹出多级菜单
    OC基础:Date
    Linux IO 多路复用是什么意思?
    c语言实现输出一个数的每一位
  • 原文地址:https://www.cnblogs.com/bmate/p/3897132.html
Copyright © 2011-2022 走看看