我最近很多时候都收到了这个错误。我意识到错误是因为当我关闭计算机时忘记转向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
答案 0 :(得分:0)
嘿,我刚刚做了这件事并且有效:
应该有效