mysqld got exception 0xc0000005,MySQL数据恢复成功

记录一次MySQL 数据恢复过程,mysqld got exception 0xc0000005,MySQL数据恢复成功

前言

公司数据库服务器:上面应该有六七十个数据库。开发数据库,代码服务器的数据都在里面。很久前备份过,但版本比较老。
操作记录:新建数据库,创建用户,给用户授权数据库。 手贱 手动重启mysql服务,没启动开,又重启服务器主机,依然没启动。各种尝试,折腾好几天。没啥用!innodb_force_recovery= 1 - 6 全部试了。错误依然。
明智之举: 出问题后,服务器用的绿色版,第一时间整个目录mysql-8.0.11及DATA做了备份。然后各种尝试折腾。在这里插入图片描述
问题日志:
2021-07-13T07:50:06.083712Z 0 [Warning] [MY-010915] [Server] ‘NO_ZERO_DATE’, ‘NO_ZERO_IN_DATE’ and ‘ERROR_FOR_DIVISION_BY_ZERO’ sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2021-07-13T07:50:06.084015Z 0 [System] [MY-010116] [Server] D:\mysql-8.0.11\bin\mysqld (mysqld 8.0.11) starting as process 5368
2021-07-13T07:50:12.507130Z 0 [System] [MY-010229] [Server] Starting crash recovery…
2021-07-13T07:50:12.507748Z 0 [System] [MY-010232] [Server] Crash recovery finished.
2021-07-13T07:50:13.897913Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2021-07-13T07:50:13.958114Z 0 [Warning] [MY-010952] [Server] The privilege system failed to initialize correctly. If you have upgraded your server, make sure you’re executing mysql_upgrade to correct the issue.
2021-07-13T07:50:13.985627Z 0 [System] [MY-010931] [Server] D:\mysql-8.0.11\bin\mysqld: ready for connections. Version: ‘8.0.11’ socket: ‘’ port: 3386 MySQL Community Server - GPL.
07:50:14 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=131072
max_used_connections=1
max_threads=200
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 = 445385 K bytes of memory
Hope that’s ok; if not, decrease some variables in the equation.

Thread pointer: 0xd2c06b1170
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong…
7ff605282861 mysqld.exe!acl_getroot()[sql_auth_cache.cc:1157]
7ff605532283 mysqld.exe!security_context_lookup()[service_security_context.cc:178]
7ff6063f4c01 mysqld.exe!xpl::Sql_data_context::switch_to_user()[sql_data_context.cc:340]
7ff6063f49c1 mysqld.exe!xpl::Sql_data_context::switch_to_local_user()[sql_data_context.cc:176]
7ff6063e02c5 mysqld.exe!xpl::Server::on_net_startup()[xpl_server.cc:544]
7ff6063dfc

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
恢复MySQL数据有以下几个步骤: 1. 首先,停止MySQL服务,可以使用命令`service mysqld stop`来停止服务。这一步是为了确保在恢复过程中不会对数据进行修改。 2. 找到之前的备份数据库文件,可以使用命令`cd /home/mysql_bak/m`进入备份文件所在的目录。 3. 如果需要恢复指定的数据库,可以使用命令`mysql -d databasename`,其中`databasename`是要恢复的数据库的名称。如果不指定数据库名称,将恢复所有的库。 4. 如果以上方法无法恢复数据,可以尝试使用binlog日志文件恢复数据的方法。这种方法通常适用于Linux系统,但在Windows上也有类似的步骤。具体的步骤可以通过多方打探和查询相关文档来获取。 注意,数据恢复过程中需要注意备份的一致性和数据的安全性,建议在进行恢复操作前先进行数据的备份,以防止意外情况的发生。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [MySQL数据库InnoDB引擎下服务器断电数据恢复方法](https://download.csdn.net/download/weixin_38539705/14835562)[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_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [mysql 数据恢复 binlog](https://blog.csdn.net/weixin_39771137/article/details/124018560)[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_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值