- 论坛徽章:
- 0
|
我mysql使用的是5.1.35,使用了独享表空间,每个表的.frm和.ibd文件都在,在命令行中执行show databases;和show tables;的时候都能列出库名和表名,可是我select表的时候,提示说表不存在
mysql> show tables;
+-----------------+
| Tables_in_crm |
+-----------------+
| banss |
+-----------------+
12 rows in set (0.00 sec)
mysql> select * from banss;
ERROR 1146 (42S02): Table 'crm.banss' doesn't exist
我只是显示你一个表,其他库和表都是这样,下面列出错误日志中的记录
100807 18:00:00 [ERROR] Cannot find or open table crm/banss from
the internal data dictionary of InnoDB though the .frm file for the
table exists. Maybe you have deleted and recreated InnoDB data
files but have forgotten to delete the corresponding .frm files
of InnoDB tables, or you have moved .frm files to another database?
or, the table contains indexes that this version of the engine
doesn't support.
See http://dev.mysql.com/doc/refman/5.1/en/innodb-troubleshooting.html
how you can resolve the problem.
请大家帮我,教我怎么弄,步骤,谢谢!!! |
|