Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "InnoDB: Failed to find tablespace for table X in the cache. Attempting to load the tablespace with space"

Tags:

mysql

Mysql doesn't work, I get the following error:

[ERROR] InnoDB: Failed to find tablespace for table '"database"."table"' in the cache.
Attempting to load the tablespace with space id 1290.
like image 827
Andrii Soluk Avatar asked Jul 27 '16 09:07

Andrii Soluk


1 Answers

I faced a similar issue today while copying a datadir from one server to another, the answer I m gonna post might not be a direct one. I have mistakenly added the innodb_force_recovery option in my configuration file thats the reason for the error, innodb_force_recovery value was set to 5. Post removing the innod_force_recover option I got rid of this issue.

like image 108
JOTHIBABU Avatar answered Nov 15 '22 01:11

JOTHIBABU