MySQL崩溃解决办法

当尝试访问特定表时,MySQL出现崩溃。通过日志分析,发现该表为复制自一个分区表并添加了新字段,这导致了崩溃。解决方法包括删除表,重新复制不带分区的版本,然后安全地添加字段。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

重现方法

执行 select * from test,MySQL自动奔溃关闭,访问其他的表没有问题,单独这个表绝对会这样。

报错日志

07:30:01 UTC - mysqld got exception 0xc0000005 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.

key_buffer_size=8388608
read_buffer_size=8192
max_used_connections=2
max_threads=151
thread_count=1
connection_count=1
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 49892 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread point
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值