3

我在使用 MySQL 时遇到问题。我最近需要重建我的电脑,因为我感染了病毒。重建的一切都很顺利,但我很难让 MySQL 自己表现出来。我的数据库的配置文件与以前完全相同,但是在重新启动 MySQL 后,某些表消失了。

这是错误日志中的一段,我相信它详细说明了这个问题:

2014-03-06T21:02:13.043598Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld: ready for connections.
Version: '5.7.3-m13-log'  socket: ''  port: 3306  MySQL Community Server (GPL)
2014-03-06T21:02:33.191623Z 5 [ERROR] InnoDB: Failed to find tablespace for table "testschema_testwithunderscore"."testtable_withunderscore" in the cache. Attempting to load the tablespace with space id 57.
2014-03-06 16:02:33 0x1d64  InnoDB: Operating system error number 32 in a file operation.
InnoDB: The error means that another program is using InnoDB's files.
InnoDB: This might be a backup or antivirus software or another instance
InnoDB: of MySQL. Please close it to get rid of this error.
2014-03-06T21:02:33.194622Z 5 [ERROR] InnoDB: Could not find a valid tablespace file for 'testschema_testwithunderscore/testtable_withunderscore'. See http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting-datadict.html for how to resolve the issue.
2014-03-06 16:02:33 0x1d64 InnoDB: cannot calculate statistics for table "testschema_testwithunderscore"."testtable_withunderscore" because the .ibd file is missing. For help, please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html
2014-03-06 16:02:33 0x1d64 InnoDB: cannot calculate statistics for table "testschema_testwithunderscore"."testtable_withunderscore" because the .ibd file is missing. For help, please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html
2014-03-06 16:02:33 0x1d64 InnoDB: cannot calculate statistics for table "testschema_testwithunderscore"."testtable_withunderscore" because the .ibd file is missing. For help, please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html
2014-03-06 16:02:34 0x1d64 InnoDB: cannot calculate statistics for table "testschema_testwithunderscore"."testtable_withunderscore" because the .ibd file is missing. For help, please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html
2014-03-06 16:02:39 0x1d9c InnoDB: cannot calculate statistics for table "testschema_testwithunderscore"."testtable_withunderscore" because the .ibd file is missing. For help, please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html

我之前曾发布过这个问题,但似乎没有人完全理解我的问题。为了更容易理解这个问题,请观看这​​个视频,展示我创建测试模式和测试表,重新启动数据库,然后看着它消失。我打开的文件夹是 MySQL 服务器的 ProgramData 文件夹。作为旁注,当我设置lower_case_table_names1. 我希望能够像过去一样在我的表名中使用大写字符。

4

1 回答 1

1

这个问题已经解决了一段时间了,但是直到今天我才忘记这个问题,所以我会回来回答。显然我安装的 MySQL 服务器在某种程度上损坏了,重新安装服务器解决了这个问题。

于 2014-12-15T21:13:29.797 回答