---
title: "Check and Repair MySQL Databases"
description: "Database tables can become corrupted after server crashes, disk errors, or interrupted write operations. Symptoms include missing data, slow queries, or error messages mentioning table corruption...."
url: https://www.inmotionhosting.com/support/server/databases/check-and-repair-databases-in-cpanel/
date: 2014-09-23
modified: 2025-12-31
author: "Jeff Matson"
categories: ["Working with Databases"]
type: post
lang: en
---

# Check and Repair MySQL Databases

Database tables can become corrupted after server crashes, disk errors, or interrupted write operations. Symptoms include missing data, slow queries, or error messages mentioning table corruption.

cPanel includes built-in tools to check for and repair these issues.

![How to Check and Repair a MySQL Database in cPanel](https://i.ytimg.com/vi_webp/X6eX-EYfAlA/maxresdefault.webp)

*Don’t have time to read our full article? Watch our walk-through video.*

## Checking a Database

1. First, you will need to be [logged in to cPanel](/support/edu/cpanel/how-to-log-into-cpanel/).
2. Once inside cPanel, click on **MySQL Databases**.![MySQL Databases icon](https://www.inmotionhosting.com/support/wp-content/uploads/2014/09/cpanel_cPanel_mysqlDatabasesIcon_highlight.png)
3. In MySQL Databases, scroll to **Modify Databases**.
4. Select your database from the **Check Database** dropdown.
5. Click **Check Database**.

cPanel runs a diagnostic and reports whether the tables are healthy or need repair.

## Repairing a Database

1. In the **Modify Databases** section, select your database from the **Repair Database** dropdown.
2. Within this page, you will see a section labeled **Modify Databases**. To repair a database, select the database that you want to check and repair in the dropdown next to **Repair Database**, and click on **Repair Database**.![Repair Database button](https://www.inmotionhosting.com/support/wp-content/uploads/2014/09/cpanel_mysql-databases_cPanel-mysql-databases-repair-database-button-highlight.jpg)
3. cPanel will then check and automatically repair all tables that require it.![repair results page](https://www.inmotionhosting.com/support/wp-content/uploads/2014/09/cpanel_mysql-databases_mysqlDatabases_repairResults.png)

This process works well for minor corruption. Severe corruption may require restoring from a backup or using command-line tools like `mysqlcheck`.

For more control over individual tables, use [phpMyAdmin to repair and optimize specific tables](https://www.inmotionhosting.com/support/website/phpmyadmin/).

Congratulations, now you know how to check and repair databases in the MySQL Databases section of cPanel. We also have a helpful guide on [How to Check and Repair a Database in phpMyAdmin](https://www.inmotionhosting.com/support/website/check-repair-database/).
