Database tables can become corrupted after a server crash, unexpected shutdown, or disk issue. Plesk has a built-in tool to check and repair MySQL/MariaDB tables without needing command-line access.
Using the built-in Check and Repair tool
- Log in to your Plesk control panel.
- Go to Websites & Domains > Databases.
- Find the database you want to check.
- Click Check and Repair in the database tools area.
- Plesk will scan all tables. If everything is fine, you'll see a confirmation that no problems were found.
- If problems are found, click See Details and Resolve.
- You'll see a list of affected tables. Select the tables you want to fix.
- Click Repair Selected.
Plesk uses the mysqlcheck utility behind the scenes, so this is the same as running a repair from the command line.
Using phpMyAdmin
If you prefer more control, you can check and repair tables through phpMyAdmin:
- Go to Websites & Domains > Databases.
- Click phpMyAdmin next to your database.
- Select your database from the left sidebar.
- At the bottom of the table list, click Check All to select every table.
- From the With selected dropdown, choose Check table and click Go.
- Review the results — look for any status other than OK.
- To repair: select the problem tables (or all), choose Repair table from the dropdown, and click Go.
Important notes
- Back up your database first. Always export a dump before running repairs — a repair on a severely damaged table could result in data loss.
- The Check and Repair tool works with MySQL and MariaDB databases. InnoDB tables may report as "doesn't support repair" — this is normal, as InnoDB has its own crash recovery.
- If you see "Table is marked as crashed and should be repaired" errors on your website, this tool is exactly what you need.
Troubleshooting
- Repair says OK but site still has errors? The issue may be with your application code or configuration, not the database tables. Check your CMS error logs.
- Table won't repair? Severely corrupted tables may need to be restored from a backup. Export what you can, drop the table, and import your backup.
- Check and Repair option missing? This tool only appears for MySQL/MariaDB databases. PostgreSQL databases use different repair methods.