[ERROR] InnoDB: Could not find a valid tablespace file

来源:互联网 发布:伊藤园三得利 知乎 编辑:程序博客网 时间:2024/05/24 06:30

mysql启动报下述错误:
[ERROR] InnoDB: Could not find a valid tablespace file for 'test/sys_log'. Seehttp://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html

for how to resolve the issue.

 

原来在异机恢复的时候少拷贝了一张表,把这个表拷贝到data/test目录下
$cp sys_log.frm sys_log.ibd  /db/data/test/

 

mysql> select version();
+-------------------------------------------+
| version()                                 |
+-------------------------------------------+
| 5.6.21-enterprise-commercial-advanced-log |
+-------------------------------------------+
1 row in set (0.00 sec)

mysql> select count(1) from  sys_log;
+----------+
| count(1) |
+----------+
| 35596850 |
+----------+
1 row in set (0.00 sec)

$tail -f error.log
[ERROR] InnoDB: Failed to find tablespace for table '"test"."sys_log"' in the cache. Attempting to load the tablespace with space id 174.

0 0
原创粉丝点击