Chinaunix首页 | 论坛 | 博客
  • 博客访问: 457323
  • 博文数量: 145
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1139
  • 用 户 组: 普通用户
  • 注册时间: 2014-01-14 16:47
个人简介

路漫漫其修远兮,吾将上下而求索

文章分类

全部博文(145)

文章存档

2016年(10)

2015年(15)

2014年(120)

我的朋友

分类: Mysql/postgreSQL

2014-01-15 09:40:57


点击(此处)折叠或打开

  1. [root@centos var]# service mysqld stop
  2. MySQL manager or server PID file could not be found! [FAILED]
解决办法:
首先查看一下进程

点击(此处)折叠或打开

  1. [root@irxpert-test /]# ps aux |grep mysq*
  2. 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
  3. 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
  4. root 11884 0.0 0.0 63384 760 pts/1 S+ 15:44 0:00 grep mysq*

如果看到上面的内容,那说明,Mysql的进程卡死了,这时用就要把这些卡死的进程都关闭

点击(此处)折叠或打开

  1. [root@centos mysql]# kill 10274
  2. [root@centos mysql]# kill 10353

启动Mysql就ok了

点击(此处)折叠或打开

  1. [root@centos mysql]# service mysql start
  2. Starting MySQL. [ OK ]


阅读(939) | 评论(0) | 转发(0) |
0

上一篇:MYSQL 引擎

下一篇:mysql 双机热备

给主人留下些什么吧!~~