【问题标题】:xampp Error: MySQL shutdown unexpectedly, cause by forgot turn off before shutdown pcxampp 错误:MySQL 意外关闭,原因是在关闭 pc 之前忘记关闭
【发布时间】:2016-08-15 04:27:22
【问题描述】:

我最近很长时间都收到此错误。我意识到这些错误是由于我在关闭计算机时忘记打开 mysql 造成的。我曾尝试删除数据文件夹中的 ibdata1,但它不适用于这种情况。以下是我的错误日志。

2016-08-15 12:11:33 1b48 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2016-08-15 12:11:33 6984 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-08-15 12:11:33 6984 [Note] InnoDB: The InnoDB memory heap is disabled
2016-08-15 12:11:33 6984 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-08-15 12:11:33 6984 [Note] InnoDB: Memory barrier is not used
2016-08-15 12:11:33 6984 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-08-15 12:11:33 6984 [Note] InnoDB: Using generic crc32 instructions
2016-08-15 12:11:33 6984 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2016-08-15 12:11:33 6984 [Note] InnoDB: Completed initialization of buffer pool
2016-08-15 12:11:33 6984 [Note] InnoDB: Highest supported file format is Barracuda.
2016-08-15 12:11:33 6984 [Note] InnoDB: The log sequence numbers 8656625 and 8656625 in ibdata files do not match the log sequence number 8656635 in the ib_logfiles!
2016-08-15 12:11:33 6984 [Note] InnoDB: Database was not shutdown normally!
2016-08-15 12:11:33 6984 [Note] InnoDB: Starting crash recovery.
2016-08-15 12:11:33 6984 [Note] InnoDB: Reading tablespace information from the .ibd files...
2016-08-15 12:11:36 6984 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace drupaltest/variable uses space ID: 31 at filepath: .\drupaltest\variable.ibd. Cannot open tablespace livestream/tbl_user which uses space ID: 31 at filepath: .\livestream\tbl_user.ibd
InnoDB: Error: could not open single-table tablespace file .\livestream\tbl_user.ibd
InnoDB: We do not continue the crash recovery, because the table may become
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
InnoDB: To fix the problem and start mysqld:
InnoDB: 1) If there is a permission problem in the file and mysqld cannot
InnoDB: open the file, you should modify the permissions.
InnoDB: 2) If the table is not needed, or you can restore it from a backup,
InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
InnoDB: crash recovery and ignore that table.
InnoDB: 3) If the file system or the disk is broken, and you cannot remove
InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
InnoDB: and force InnoDB to continue crash recovery here

如何通过配置或其他方法解决此问题,而不是重新安装 xampp

【问题讨论】:

    标签: xampp


    【解决方案1】:

    嘿,我刚刚做了这个,它成功了:

    1. 退出 Xampp 服务器
    2. 转到您的 C:\xampp\mysql\data 目录
    3. 删除ibdata1文件
    4. 重启xampp服务器

    它应该可以工作

    【讨论】:

    • 你试试看。在 mysql 配置文件 (my.ini) 的 [mysqld] 部分下方添加以下行,然后重新启动 apache Web 服务器和 mysql 服务。 [mysqld] innodb_force_recovery = 4
    • 你改变:[mysqld] innodb_force_recovery = 1
    • 得到相同的响应
    • 你删除了.ibd文件??
    • 不,我没有删除任何 .ibd 文件
    猜你喜欢
    • 2018-04-24
    • 1970-01-01
    • 2018-03-29
    • 2013-02-16
    • 2019-01-25
    • 2021-01-04
    • 2017-10-01
    • 2021-03-18
    • 2021-10-04
    相关资源
    最近更新 更多