MySql 意外停止

标签 mysql xampp

MySql 意外停止

这是错误日志的副本:

2019-07-03 13:27:50 0 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.

2019-07-03 13:27:50 0 [Note] InnoDB: 128 out of 128 rollback segments are active.

2019-07-03 13:27:50 0 [ERROR] InnoDB: Page [page id: space=0, page number=305] log sequence number 2834539 is in the future! Current system log sequence number 1604011.

2019-07-03 13:27:50 0 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.

2019-07-03 13:27:50 0 [Note] InnoDB: Creating shared tablespace for temporary tables

2019-07-03 13:27:50 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2019-07-03 13:27:50 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.

2019-07-03 13:27:50 0 [Note] InnoDB: Waiting for purge to start

2019-07-03 13:27:50 0 [Note] InnoDB: 10.3.16 started; log sequence number 1604002; transaction id 1432

2019-07-03 13:27:50 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool

2019-07-03 13:27:50 0 [ERROR] InnoDB: Page [page id: space=0, page number=9] log sequence number 2841120 is in the future! Current system log sequence number 1604011. 2019-07-03 13:27:50 0 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.

2019-07-03 13:27:50 0 [ERROR] InnoDB: Page [page id: space=0, page number=243] log sequence number 2082633 is in the future! Current system log sequence number 1604011. 2019-07-03 13:27:50 0 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.

2019-07-03 13:27:50 0 [ERROR] InnoDB: Page [page id: space=1, page number=0] log sequence number 1608629 is in the future! Current system log sequence number 1604011. 2019-07-03 13:27:50 0 [Note] Plugin 'FEEDBACK' is disabled.

2019-07-03 13:27:50 0 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.

2019-07-03 13:27:50 0 [ERROR] InnoDB: Page [page id: space=1, page number=1] log sequence number 1604111 is in the future! Current system log sequence number 1604011. 2019-07-03 13:27:50 0 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.

2019-07-03 13:27:50 0 [Note] Server socket created on IP: '::'.

2019-07-03 13:27:50 0 [ERROR] InnoDB: Page [page

  • 我该怎么做才能让我的数据库重新启动并运行? 非常感谢所有帮助!

最佳答案

我遇到了同样的问题。我只是按照以下步骤操作

第 1 步:C:\xampp\mysql\data 中的所有文件移动(剪切/粘贴)到所需的备份位置。

第 2 步: 然后将所有文件从 C:\xampp\mysql\backup 复制到 C:\xampp\mysql\data

第 3 步: 重新启动 mysql 并检查 phpmyadmin url,它有效。

第 4 步: 之后停止 mysql 并将 ibdata1 文件从备份位置复制到 C:\xampp\mysql\data

第五步:重启mysql

第 6 步:复制所有数据库文件夹并检查所有表后,成功了。

关于MySql 意外停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56865620/

相关文章:

web - 通过 Internet 从外部访问 Xampp

mysql - Xampp 控制面板 mysql 无法启动

mysql - 我可以有两行内容相同(除了 1 列)吗

mysql - MariaDB 崩溃 : Table doesn't exist in engine && can't recover tables

php - 想要在 yii 中保存(false)后将变量传递给 aftersave() 方法

mysql - 优化 SELECT count(DISTINCT ip)

xampp - 为本地主机安装 gRPC

python - 我应该将什么 Python 插件与 XAMPP 一起使用

php - 我无法使用 xampp 访问本地主机中的数据库

php - MySQL 空间表中两点之间的精确距离(以 KM 为单位)