博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mysqld 已死,但是 subsys 被锁
阅读量:4686 次
发布时间:2019-06-09

本文共 1222 字,大约阅读时间需要 4 分钟。

1. Obviously the 'ole check the log file for anything nastycat /var/log/mysqld.log2. Stop the serviceservice mysqld stop3. Check to see if the service stopped, it might be calling the wrong pid.ps aux | grep mysql4. Kill any mysql process that might still be running.kill -9 ??? ???5. (*CAREFUL*) Remove/move/backup any databases from the data directory, only do this step if you need to.rm -Rf /var/lib/mysql/*6. Check your global options configuration file, should be similar to stevanbt's initial post.cat /etc/my.cnf7. Copy over one of the preconfigured 'sample' server-specific options file. Global (/etc/my.cnf) file has priority over server-specific file, but these have more options in them and have been tuned for a certain role.cp /usr/share/doc/mysql-server-?.??.??/my-small.cnf /var/lib/mysql8. Recreate the initial databases, this step is optional as the initscripts will do this anyway.mysql_install_db9. Check and set the runlevels for the service.chkconfig --level 345 mysqld onchkconfig --list mysqld10. Start the service.service mysqld start11. Check the log file (step 1)Thats just a basic step through check, most of you have probably already done this.

转载于:https://www.cnblogs.com/ligao/p/6088713.html

你可能感兴趣的文章
Sharepoint2013商务智能学习笔记之使用Current User Filter筛选Excel 数据(六)
查看>>
2012-11-13:延期通知书
查看>>
CodeForces - 367C Sereja and the Arrangement of Numbers
查看>>
js添加文件引用,可以智能感知
查看>>
大数据学习——VMware安装
查看>>
[BZOJ2125]最短路
查看>>
对象和数组的相互转化
查看>>
为什么存储过程比sql语句效率高?
查看>>
非遗园
查看>>
django forms的常用命令及方法(一)
查看>>
python 去除微软的BOM
查看>>
Maven下载私服上的jar包(全局)
查看>>
pytorch 2 variable 变量
查看>>
CentOS 6.5 安装 Python3
查看>>
在flask框架中,对wtforms的SelectMultipleField的一个报错处理
查看>>
java 线程监视器
查看>>
简单漂亮bootstrap grid列表分页 demo.
查看>>
【HDU 5532 Almost Sorted Array】水题,模拟
查看>>
BZOJ3339: Rmq Problem
查看>>
网易笔试
查看>>