您的位置:首页 > 数据库 > MySQL

Ubuntu下mysql无法重启

2015-10-09 22:29 387 查看
错误日志:

$ tail -n 100 /var/log/mysql/error.log | head -n 20 #或者 tail -n 20 /var/log/mysql/error.log

最近的错误信息:

InnoDB: Unable to lock ./ibdata1, error: 11

InnoDB: Check that you do not already have another mysqld process

InnoDB: using the same InnoDB data or log files.

InnoDB: Unable to lock ./ibdata1, error: 11

InnoDB: Check that you do not already have another mysqld process

InnoDB: using the same InnoDB data or log files.

InnoDB: Unable to lock ./ibdata1, error: 11

InnoDB: Check that you do not already have another mysqld process

InnoDB: using the same InnoDB data or log files.

InnoDB: Unable to lock ./ibdata1, error: 11

InnoDB: Check that you do not already have another mysqld process

InnoDB: using the same InnoDB data or log files.

InnoDB: Unable to lock ./ibdata1, error: 11

InnoDB: Check that you do not already have another mysqld process

InnoDB: using the same InnoDB data or log files.

151009 21:54:03 InnoDB: Unable to open the first data file

InnoDB: Error in opening ./ibdata1

151009 21:54:03 InnoDB: Operating system error number 11 in a file operation.

InnoDB: Error number 11 means 'Resource temporarily unavailable'.

InnoDB: Some operating system error numbers are described at

错误已经很明确了:存在其它的mysql数据库服务进程

$ ps aux | grep mysql

找到mysqld进程ID,kill

mysql 6821 0.0 1.1 484456 47276 ? Ssl 22:15 0:00 /usr/sbin/mysqld

$ sudo kill 6821 #这里的数字是mysqld的进程ID

$ sudo /etc/init.d/mysql start
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: