mysql-bin删除后导致MySql数据库无法启动问题的解决方法

时间:2021-05-02

有时,磁盘空间不够用了,可能要删除几个mysql-bin,其后果可能是造成mysql无法启动。

如可能出现下面的提示:

1.140211 16:12:03 [Note] Recovering after a crash using mysql-bin2.140211 16:12:03 [Note] Starting crash recovery...3.140211 16:12:03 [Note] Crash recovery finished.4.140211 16:12:03 - mysqld got signal 11 ;5.This could be because you hit a bug. It is also possible that this binary6.or one of the libraries it was linked against is corrupt, improperly built,7.or misconfigured. This error can also be caused by malfunctioning hardware.8.We will try our best to scrape up some info that will hopefully help diagnose9.the problem, but since we have already crashed, something is definitely wrong10.and this may fail.11. 12.key_buffer_size=013.read_buffer_size=209715214.max_used_connections=015.max_connections=150016.threads_connected=017.It is possible that mysqld could use up to 18.key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 7680000 K19.bytes of memory20.Hope that's ok; if not, decrease some variables in the equation.

解决办法是把mysql-index文件中多余的内容删除即可

1.MICDBSTG01:root:/u02/mysql-5.0.67-aix5.3-powerpc-64bit/data>vi mysql-bin.index2."mysql-bin.index" 27 lines, 513 characters 3../mysql-bin.0000964../mysql-bin.0000975../mysql-bin.0000986../mysql-bin.0000997../mysql-bin.0001008../mysql-bin.0001019../mysql-bin.00010210../mysql-bin.00010311../mysql-bin.00010412../mysql-bin.00010513../mysql-bin.00010614../mysql-bin.000107

本文为转载改编,原文地址:http://blog.chinaunix.net/uid-11121450-id-3270848.html

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章