---
title: Check and Repair a MySQL Database in cPanel When Tables Are Corrupted
description: "**When you need it**If you see a message such as **Table is marked as crashed**, or certain pages suddenly fail, open **Manage My Databases** in cPanel. Under **Modify Databases** pick the database and click **Check Database**; if it reports an…"
url: "https://www.hyyat.com/en/knowledgebase/repair-mysql-database-cpanel/"
updated: "2026-11-22"
category: cPanel Guides
---

# Check and Repair a MySQL Database in cPanel When Tables Are Corrupted

**When you need it**If you see a message such as **Table is marked as crashed**, or certain pages suddenly fail, open **Manage My Databases** in cPanel. Under **Modify Databases** pick the database and click **Check Database**; if it reports an error, click **Repair Database**.

Tables can be damaged if the server stops while writing, the disk fills up, or a large operation is cut off half way. Damage usually affects one table, so one page or feature fails while the rest of the site works.

## Signs of a damaged table

- The message `Table '...' is marked as crashed and should be repaired`.
- The message `Incorrect key file for table`.
- One page or section shows a database error while other pages work.
- The WordPress dashboard asks you to repair the database.

 **Before repairing:** export a copy of the database from phpMyAdmin. Repairs are usually safe, but a copy protects you if something is lost. See [exporting a database](https://www.hyyat.com/en/knowledgebase/import-export-mysql-database-phpmyadmin/).

## Check, then repair

1. **Open Manage My Databases** in the Databases section of cPanel.
2. **Scroll to Modify Databases** there are two lists: check and repair.
3. **Pick the database and click Check Database** the result for each table appears.
4. **If a table shows an error** go back, pick the same database in the repair list and click Repair Database.
5. **Open your site** and make sure the broken page works again.

![The Modify Databases section with Check and Repair buttons in cPanel](https://www.hyyat.com/wp-content/uploads/2026/11/hkb-fd-en-db-repair.webp)

## The repair did not work?

| Situation | What to do |
| --- | --- |
| The message says the table type does not support repair | InnoDB tables usually recover on their own. Send the error to support |
| The disk is full | Free space first, see [Disk Usage](https://www.hyyat.com/en/knowledgebase/cpanel-disk-usage/), then try again |
| The problem keeps coming back | A plugin or script may be writing heavily. Contact support with the table name |
| Data missing after the repair | Import the copy you took, or ask for a restore from backups |

## Is it really the tables?

The WordPress message **Error Establishing a Database Connection** is usually not corruption but a wrong database name, user or password. See [fixing the database connection error](https://www.hyyat.com/en/knowledgebase/fix-error-establishing-a-database-connection-in-wordpress/) before repairing.

## Frequently asked questions

   Does repairing delete data?

Rarely, but always take a copy first.

   How long does a repair take?

Seconds for a small database, longer for large tables.

   Should I take the site offline while repairing?

Not for a small database. For a big store pick a quiet time.

   Every table says OK. So where is the problem?

The database is fine; the cause is usually the connection settings or the site itself.

   **Related guides**

- [Export and Import a Database with phpMyAdmin in cPanel: Backups and Site Moves](https://www.hyyat.com/en/knowledgebase/import-export-mysql-database-phpmyadmin/)
- [Create a MySQL Database and User in cPanel: With the Wizard or by Hand](https://www.hyyat.com/en/knowledgebase/create-mysql-database-cpanel/)
- [Fix Error Establishing a database connection in WordPress](https://www.hyyat.com/en/knowledgebase/fix-error-establishing-a-database-connection-in-wordpress/)
- [Disk Usage in cPanel: See What Fills Your Hosting Space and How to Free It](https://www.hyyat.com/en/knowledgebase/cpanel-disk-usage/)
- [The Files and Databases Sections in cPanel: File Manager, FTP and Creating a Database](https://www.hyyat.com/en/knowledgebase/cpanel-files-databases-section/)

[All cPanel guides →](https://www.hyyat.com/en/kb/website-control-panel-cpanel/)

  **Need this service from Hyyat Host?**Our team handles it for you, with support replying to tickets within 24 hours at most.[Web Hosting](https://www.hyyat.com/en/hosting/)[Saudi Hosting](https://www.hyyat.com/en/saudi-hosting/)
