启动MySQL数据失败1027错误_解决MySQL数据库意外崩溃导致表数据文件损坏无法启动的问题...

本文介绍了当MySQL数据库意外崩溃并报1027错误时,如何处理表数据文件损坏无法启动的问题。通过分析错误日志,发现InnoDB表损坏。尝试方法包括备份并移除损坏文件、设置innodb_force_recovery参数来启动数据库、备份数据、删除数据库、重新导入数据。详细步骤和innodb_force_recovery参数的解释帮助理解恢复过程。
摘要由CSDN通过智能技术生成

问题故障:

MySQL数据库意外崩溃,一直无法启动数据库。

报错日志:

启动报错:service mysqld restart

ERROR! MySQL server PID file could not be found!

Starting MySQL. ERROR! The server quit without updating PID file (/www/wdlinux/mysql/var/iZ2358oz5deZ.pid).

数据库error日志:

200719 22:07:43 InnoDB: Database was not shut down normally!

InnoDB: Starting crash recovery.

InnoDB: Reading tablespace information from the .ibd files...

InnoDB: Error: trying to add tablespace 840 of name "./ob_wp/ob_termmeta.ibd"

InnoDB: to the tablespace memory cache, but tablespace

InnoDB: 840 of name "./dev_nss/dg_queue.ibd" already exists in the tablespace

InnoDB: memory cache!

200719 22:07:43 mysqld_safe mysqld from pid file /www/wdlinux/mysql/var/iZ2358oz5deZ.pid ended

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值