mysql错误InnoDB:Attemptedtoopenapreviouslyopenedtablespace.

冷不防 2022-07-11 08:19 249阅读 0赞
  1. 2017-01-20 21:14:53 32 [Note] InnoDB: Using mutexes to ref count buffer pool pages
  2. 2017-01-20 21:14:53 32 [Note] InnoDB: The InnoDB memory heap is disabled
  3. 2017-01-20 21:14:53 32 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
  4. 2017-01-20 21:14:53 32 [Note] InnoDB: Memory barrier is not used
  5. 2017-01-20 21:14:53 32 [Note] InnoDB: Compressed tables use zlib 1.2.3
  6. 2017-01-20 21:14:53 32 [Note] InnoDB: Using generic crc32 instructions
  7. 2017-01-20 21:14:53 32 [Note] InnoDB: Initializing buffer pool, size = 256.0M
  8. 2017-01-20 21:14:53 32 [Note] InnoDB: Completed initialization of buffer pool
  9. 2017-01-20 21:14:53 32 [Note] InnoDB: Highest supported file format is Barracuda.
  10. 2017-01-20 21:14:53 32 [Note] InnoDB: The log sequence numbers 0 and 0 in ibdata files do not match the log sequence number 1755003 in the ib_logfiles!
  11. 2017-01-20 21:14:53 32 [Note] InnoDB: Database was not shutdown normally!
  12. 2017-01-20 21:14:53 32 [Note] InnoDB: Starting crash recovery.
  13. 2017-01-20 21:14:53 32 [Note] InnoDB: Reading tablespace information from the .ibd files...
  14. 2017-01-20 21:14:53 32 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace medicalsale/salesman uses space ID: 13 at filepath: .\medicalsale\salesman.ibd. Cannot open tablespace phpmyadmin/pma__history which uses space ID: 13 at filepath: .\phpmyadmin\pma__history.ibd
  15. InnoDB: Error: could not open single-table tablespace file .\phpmyadmin\pma__history.ibd
  16. InnoDB: We do not continue the crash recovery, because the table may become
  17. InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
  18. InnoDB: To fix the problem and start mysqld:
  19. InnoDB: 1) If there is a permission problem in the file and mysqld cannot
  20. InnoDB: open the file, you should modify the permissions.
  21. InnoDB: 2) If the table is not needed, or you can restore it from a backup,
  22. InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
  23. InnoDB: crash recovery and ignore that table.
  24. InnoDB: 3) If the file system or the disk is broken, and you cannot remove
  25. InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
  26. InnoDB: and force InnoDB to continue crash recovery here.

出现这个问题好几次了,每次的解决问题都是重新弄下Mysql.
我用的是XAMPP 3.2.2,今天终于找到解决办法了
在D:\xampp\mysql\bin下面的my.ini中添加
innodb_force_recovery = 1

发表评论

表情:
评论列表 (有 0 条评论,249人围观)

还没有评论,来说两句吧...

相关阅读

    相关 mysql错误处理

    1.Got error 28 from storage engine 如果数据库存储空间没问题,应该是数据库用的临时目录空间不够。 linux:清空/tmp目录,或者修改m

    相关 mysql 1071错误

    mysql 1071错误经过查询才知道,是Mysql的字段设置的太长了,于是我把这两个字段的长度改了一下就好了。  建立索引时,数据库计算key的长度是累加所有Ind

    相关 mysql常见错误

    mysql也符合SQL语句的格式,所以,我们对其进行不当的操作时,mysql就会报出一系列的错误。每个错误对应着一个错误编码,当出现了错误别紧张,我们先看错误写的是什么意思,然