首 页IT知识库翔宇问吧收藏内容
当前位置:翔宇亭IT乐园IT知识库数据库MySQL

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

减小字体 增大字体 作者:yifangyou  来源:yifangyou.blog.chinaunix.net  发布时间:2014-02-11 21:29:00

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

如可能出现下面的提示:

1.140211 16:12:03 [Note] Recovering after a crash using mysql-bin
2.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 binary
6.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 diagnose
9.the problem, but since we have already crashed, something is definitely wrong
10.and this may fail.
11.
12.key_buffer_size=0
13.read_buffer_size=2097152
14.max_used_connections=0
15.max_connections=1500
16.threads_connected=0
17.It is possible that mysqld could use up to
18.key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 7680000 K
19.bytes of memory
20.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.index
2."mysql-bin.index" 27 lines, 513 characters
3../mysql-bin.000096
4../mysql-bin.000097
5../mysql-bin.000098
6../mysql-bin.000099
7../mysql-bin.000100
8../mysql-bin.000101
9../mysql-bin.000102
10../mysql-bin.000103
11../mysql-bin.000104
12../mysql-bin.000105
13../mysql-bin.000106
14../mysql-bin.000107

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

微信搜索“优雅的代码”关注本站的公众号,或直接使用微信扫描下面二维码关注本站公众号,以获取最新内容。

个人成长离不开各位的关注,你的关注就是我继续前行的动力。

知识评论评论内容只代表网友观点,与本站立场无关!

   评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
愿您的精彩评论引起共鸣,带来思考和价值。
用户名: 查看更多评论
分 值:100分 90分 80分 70分 60分 40分 20分
内 容:
验证码:
关于本站 | 网站帮助 | 广告合作 | 网站声明 | 友情连接 | 网站地图
本站部分内容来自互联网,如有侵权,请来信告之,谢谢!
Copyright © 2007-2022 biye5u.com. All Rights Reserved.