If you get an error which says that your database has crashed and needs to be repaired, then you should easily fix this in cPanel.
Even if you are getting a another error "supplied argument is not a valid" or "table attribute does not exist", Try these steps it may fix the problem:
- Login to cPanel and click MySQL Databases.
- Under Modify Databases, look for the drop-down called "Check DB".
- Select the database name which is having trouble.
- Click the Check DB button.
This should tell you the cause of the problem. If the problem is identified as "marked as crashed", then proceed.
- Go back to MySQL Databases.
- Under Modify Databases, look for the drop-down called "Repair DB".
- Select the database name which is having trouble.
- Click the Repair DB button.
- Once complete, reload your web site.
*This may or may not solve the actual issue, this really depends on how you have created your database as well.