MySQL崩溃解决办法

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

重现方法

执行 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
要解决MySQL 1251错误,可以按照以下方法进行操作。 首先,根据引用中的建议,考虑升级MySQL客户端,因为该错误提示表示客户端不支持服务器请求的认证协议。升级MySQL客户端可能会解决此问题。 另外,根据引用的提示,可以尝试修改插件为mysql_old_password,然后再升级为mysql_native_password。具体方法如下: 1. 登录MySQL数据库。 2. 运行以下命令更改插件:ALTER USER '用户名'@'localhost' IDENTIFIED WITH mysql_old_password BY '密码',其中'用户名'是你的MySQL用户名,'localhost'是你的主机名,'密码'是你的密码。 3. 然后,使用以下命令刷新权限:FLUSH PRIVILEGES。 4. 最后,再次运行以下命令将插件更改为mysql_native_password:ALTER USER '用户名'@'localhost' IDENTIFIED WITH mysql_native_password BY '密码',其中'用户名'、'localhost'和'密码'与前面的命令相同。 此外,你也可以参考MySQL官方网站提供的方法,从mysql_old_password升级到mysql_native_password。具体步骤可以在官方文档中找到。引用中提供了相应的官方原文。 综上所述,要解决MySQL 1251错误,可以考虑升级MySQL客户端、修改插件为mysql_old_password再升级为mysql_native_password,或者参考MySQL官方提供的方法进行升级。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [关于Mysql数据库连接Navicat时出现1251报错问题的解决方法](https://blog.csdn.net/qq_42701659/article/details/124660852)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [navicat for mysql 链接时报错:1251-Client does not support authentication protocol requested by ...](https://blog.csdn.net/weixin_33806914/article/details/92381312)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值