mysql数据启动大量报错且无法启动(The InnoDB memory heap is disabled,Status: NOT_KILLED)故障排查
周一上班巡检发现公司的有一组mysql主从同步进程报警,登录报警服务器,进行查看排查步骤如下:
1,首先登录保障服务器,执行mysql命令登录mysql,发现报错,提示SOCK无法连接详如下:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
2.执行 lsof -n -i:3306 查看发现mysql监听端口不在!
3. 启动数据库;
/etc/init.d/mysqld start
提示启动成功!
4.再次查看mysql监听端口,执行 lsof -n -i:3306
查看发现mysql监听端口还是不在!呀郁闷了,这种现象还是第一次见,同时感觉到问题有些严重。
5.查看mysql进程,发现此时 mysql 进程竟然还在!!!!!!!!! 真实坑。。。
ps -ef |grep mysql
mysql 19143 1 0 12:26 pts/6 00:00:01 /mysql/bin/mysqld --basedir=/mysql --datadir=/data/3306/data
6.此时查看一下mysql系统日志
tail -f /var/log/mysqlerror.log
发现mysql在不停打印一下错误日志,篇幅还挺大,详细报错内容如下:
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
121210 12:25:40 mysqld_safe Number of processes running now: 0
121210 12:25:40 mysqld_safe mysqld restarted
121210 12:25:41 InnoDB: The InnoDB memory heap is disabled

本文详细记录了MySQL数据库在启动时遇到The InnoDB memory heap is disabled错误,导致无法正常启动的问题。通过一系列的故障排查步骤,分析了Status: NOT_KILLED的状况,最终找到了解决方案。
最低0.47元/天 解锁文章
1274

被折叠的 条评论
为什么被折叠?



