大佬教程收集整理的这篇文章主要介绍了MySQL无法启动的解决办法,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_283_1@mysqL无法启动的解决办法
@H_919_0@mysqL无法启动在停止MysqL之后,执行了一些操作(如修改主机名),重新启动 MysqL,发现起不来。
[root@www ~]$ service MysqL start StarTing Mysql..^[[A.................................................................................................. ERROR! The server quit without updating PID file (/disk/MysqL/www.pid). [root@www ~]$ service MysqL stop ERROR! MysqL server PID file Could not be found! [root@www ~]$ service MysqL stop ERROR! MysqL server PID file Could not be found! [root@www ~]$ service MysqL start StarTing Mysql.................. 还是老样子,只好 Ctr+C 掉。 [root@www ~]$
实在是启动不了,看一下日志:/disk/MysqL/www.err
120608 09:56:17 MysqLd_safe StarTing MysqLd daemon with databases from /disk/MysqL 120608 9:56:17 [Note] Plugin 'FEDERATED' is disabled. 120608 9:56:17 InnoDB: The InnoDB memory heap is disabled 120608 9:56:17 InnoDB: Mutexes and rw_locks use InnoDB's own implementation 120608 9:56:17 InnoDB: Compressed tables use zlib 1.2.3 120608 9:56:17 InnoDB: Using Linux native AIO 120608 9:56:17 InnoDB: Initializing buffer pool,size = 128.0M 120608 9:56:17 InnoDB: Completed initialization of buffer pool 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. 120608 9:56:17 InnoDB: retrying to lock the first data file 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 ...
好像是原来的 MysqLd 并没有停下来。
强制终止 MysqLd
[root@www ~]$ ps -ef|grep MysqL root 4769 1 0 Jun06 ? 00:00:00 /bin/sh /usr/bin/MysqLd_safe --datadir=/disk/MysqL --pid-file=/disk/MysqL/localhosT.PID MysqL 4874 4769 0 Jun06 ? 00:04:04 /usr/sbin/MysqLd --basedir=/usr --datadir=/disk/MysqL --plugin-dir=/usr/lib/MysqL/plugin --user=MysqL --log-error=/disk/MysqL/localhost.err --pid-file=/disk/MysqL/localhosT.PID --socket=/disk/MysqL/Mysql.sock root 17947 1 0 09:56 pts/1 00:00:00 /bin/sh /usr/bin/MysqLd_safe --datadir=/disk/MysqL --pid-file=/disk/MysqL/www.pid MysqL 18052 17947 0 09:56 pts/1 00:00:00 /usr/sbin/MysqLd --basedir=/usr --datadir=/disk/MysqL --plugin-dir=/usr/lib/MysqL/plugin --user=MysqL --log-error=/disk/MysqL/www.err --pid-file=/disk/MysqL/www.pid --socket=/disk/MysqL/Mysql.sock root 18099 17514 0 09:56 pts/1 00:00:00 grep MysqL [root@www ~]$ killall MysqLd [root@www ~]$ killall MysqLd [root@www ~]$ ps -ef|grep MysqL root 18116 17514 0 09:57 pts/1 00:00:00 grep MysqL [root@www ~]$
启动 MysqLd ,现在执行多次启动命令都没有问题。
[root@www ~]$ service MysqL start StarTing Mysql. succesS! [root@www ~]$ [root@www ~]$ [root@www ~]$ [root@www ~]$ [root@www ~]$ service MysqL start StarTing MysqL succesS! [root@www ~]$
前面 www.err 文件中显示的 error: 11 到底是什么,看下:
[root@www ~]$ perror 11 OS error code 11: resource temporarily unavailable [root@www ~]$ [root@www ~]$
如有疑问请留言或者到本站社区交流讨论,感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
以上是大佬教程为你收集整理的MySQL无法启动的解决办法全部内容,希望文章能够帮你解决MySQL无法启动的解决办法所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。