最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

mysql启动报错-serverPIDfilecouldnotbefound解决_MySQL

来源:动视网 责编:小采 时间:2020-11-09 18:28:23
文档

mysql启动报错-serverPIDfilecouldnotbefound解决_MySQL

mysql启动报错-serverPIDfilecouldnotbefound解决_MySQL:bitsCN.com mysql启动报错-server PID file could not be found解决 [root@yunhe ~]# service mysql stopMySQL server PID file could not be found! [失败]解决方案如下: 首先查看下与mysql有关的进程 [root@yunhe ~]
推荐度:
导读mysql启动报错-serverPIDfilecouldnotbefound解决_MySQL:bitsCN.com mysql启动报错-server PID file could not be found解决 [root@yunhe ~]# service mysql stopMySQL server PID file could not be found! [失败]解决方案如下: 首先查看下与mysql有关的进程 [root@yunhe ~]


bitsCN.com


mysql启动报错-server PID file could not be found解决

[root@yunhe ~]# service mysql stop

MySQL server PID file could not be found! [失败]

解决方案如下:

首先查看下与mysql有关的进程

[root@yunhe ~]# ps aux |grep mysq*

root 2019 0.0 0.1 6228 1392 ? S 09:22 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/yunhe.pid

mysql 2115 0.0 2.9 353596 30808 ? Sl 09:22 0:01 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --log-error=/var/lib/mysql/yunhe.err --pid-file=/var/lib/mysql/yunhe.pid

500 4258 0.0 1.6 83432 17484 ? S 09:35 0:01 gedit /usr/share/mysql/my-medium.cnf

root 5555 0.0 0.0 5936 768 pts/0 S+ 10:04 0:00 grep mysq*

如果看到上面的内容,那说明mysql相关的进程存在,不过资源调度出现了问题(好像卡死),这时用就要把这些卡死的进程都关闭。

[root@yunhe ~]# kill 2019

[root@yunhe ~]# kill 20115

-bash: kill: (20115) - 没有那个进程

[root@yunhe ~]# kill 2115

然后重新启动mysql

[root@yunhe ~]# service mysql start

Starting MySQL... [确定]

[root@yunhe ~]# mysql -u root -p

Enter password:

Welcome to the MySQL monitor. Commands end with ; or /g.

Your MySQL connection id is 1

Server version: 5.6.4-m7 MySQL Community Server (GPL)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '/h' for help. Type '/c' to clear the current input statement.

mysql>

bitsCN.com

文档

mysql启动报错-serverPIDfilecouldnotbefound解决_MySQL

mysql启动报错-serverPIDfilecouldnotbefound解决_MySQL:bitsCN.com mysql启动报错-server PID file could not be found解决 [root@yunhe ~]# service mysql stopMySQL server PID file could not be found! [失败]解决方案如下: 首先查看下与mysql有关的进程 [root@yunhe ~]
推荐度:
标签: 错误 解决 my
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top