Report this

What is the reason for this report?

How to solve MYSQL "Table doesn't exist" even it does exist.

Posted on April 4, 2019

After we reboot the server, we can’t access the mysql database and it’s table anymore. The error is "#1146 Table ‘Table_name’ doesn’t exist. It is still there but we can’t open,



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

You could try a few things here:

  • First try to restart your MySQL server – If the error has happened due to improper server shut down or MySQL service related errors, we restart the service and check if it fixes the issue. If the service doesn’t start properly, we further investigate and fix the error.

  • Try to Repair the tables:

repair table Table_name;
  • Try restoring a backup of your database

If none of those helps, then you would need to look into copying your ibdata file from a backup or enabling InnoDB crash recovery. Though before starting with those make sure to have a good backup of all of your databases.

Hope that this helps! Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.