我在Win7上卸载了Win7。它删除了所有内容,但保留了包含我的数据库的数据文件夹。在同一个目录上再次安装WAMP之后,我以为它会恢复MySQL数据库,但它没有恢复。
它确实向我展示了我的数据库,当我在phpMyAdmin中展开它时,我可以看到这些表,但是当我试图查询它们时,它说,#1146 - Table 'tablename' doesn't exist
我搜索了几个帖子。This post已经足够接近了,但是它适用于Linux,而不是我的情况。
任何帮助都将不胜感激。
更新1: --我尝试重复提到的here步骤
仍然有同样的错误。
更新2: --我试着重复提到的步骤-- here也得到了相同的错误。
更新3:检查.err文件显示了以下错误:
[Warning] InnoDB: Cannot open table testdb/rules from the internal data dictionary of InnoDB though the .frm file for the table exists.更新4: CHECK TABLEtablename;导致以下错误
Warning InnoDB: Tablespace is missing for table 'db/tablename'
Error Table 'db.tablename' doesn't exist
status Operation failed发布于 2016-02-14 05:55:16
为什么不卸载并重新安装数据目录中的备份数据文件WAMP。有时它能解决问题。
我建议您在进行任何认真的修改之前,始终导出您的DB。
下面是how to recover data的一个线程,这可能对您有所帮助。
https://stackoverflow.com/questions/35388719
复制相似问题