Start MySQL.. ERROR! Manager of pid-file quit without updati
时间:2014-09-17 22:15 来源:linux.it.net.cn 作者:it
Start MySQL.. ERROR! Manager of pid-file quit without updating file 解决方法
今天一个客户跟我说,网站突然出现“建立数据库连接时出错”,连上他的VPS
[root@server1 ~]
# service mysqld restart
02
//首先重启MYSQL试试
03
ERROR! MySQL manager or server PID
file
could not be found!
04
//错误,没有找到MYSQL PID文件
05
Starting MySQL.s.ervic.e ms ERROR! Manager of pid-
file
quit without updating
file
.
06
//启动失败了,我们再来看看
07
08
[root@server1 ~]
# ps aux |grep mysq*
09
//查看包涵
"mysq*"
的进程状态
10
root 3162 0.0 0.0 2360 584 pts/1 S+ 09:25 0:00
grep
mysq*
11
root 24119 16.1 0.2 3764 2072 pts/1 R 09:24 0:09 /bin/sh /usr/bin/mysqld_safe -datadir=/var/lib/mysql --pid-
file
=/var/lib/mysql/server1.domains.com.pid
12
//这个进程卡死在这了
13
14
[root@server1 ~]
# kill 24119
15
//结束这个进程
16
[root@server1 ~]
# service mysqld start
17
//启动 mysql ,发现还是失败
18
Starting MySQL.. ERROR! Manager of pid-
file
quit without updating
file
.
19
//这个问题一般是由于硬盘满了导致了
20
21
[root@server1 ~]
# df -h
22
//查看硬盘
23
Filesystem Size Used Avail Use% Mounted on
24
/dev/xvda1 25G 24G 0 100% /
25
none 491M 0 491M 0% /dev/shm
26
//噢,Shift,果然是的。
27
//联系用户删除某些无用文件后
28
29
[root@server1 ~]
# df -h
30
Filesystem Size Used Avail Use% Mounted on
31
/dev/xvda1 25G 21G 3.1G 88% /
32
none 491M 0 491M 0% /dev/shm
33
34
[root@server1 ~]
# service mysqld start
35
//再来启动 Mysql
36
Starting MySQL SUCCESS!
37
//启动成功
(责任编辑:IT)
Start MySQL.. ERROR! Manager of pid-file quit without updating file 解决方法今天一个客户跟我说,网站突然出现“建立数据库连接时出错”,连上他的VPS
(责任编辑:IT) |