---
title: "Handling table crashes"
date: "2014-11-11"
category: "mysql"
slug: "handling-database-crashes"
---

MySQL tables can occasionally become corrupted or crash due to bugs, storage limits, or other issues. Newer servers ([[determining-platform-version]]) use improved alternatives like [Percona](http://www.percona.com) and [MariaDB](https://mariadb.org/), but crashes may still occur.

## Symptoms

Errors appear in your [[changing-php-settings]] or [[accessing-page-views-and-error-messages]] with a message like:

Table './mydb/some\_table' is marked as crashed and should be repaired

## Repairing Crashed Tables

Use phpMyAdmin in the [[logging-into-the-control-panel]] under **Databases** > **phpMyAdmin**:

1. Select your database in the left pane
2. Select the crashed table (if unsure which table, select all -- this takes longer)
3. From the _With Selected:_ dropdown at the bottom, choose **Repair Table**
4. Wait for the operation to complete. Do not close the browser until you see confirmation.
    - Ensure you have sufficient storage available, otherwise the repair will not complete
5. Your site will resume normal operation

![Repair Table option selected in phpMyAdmin](kb-image:repair-table.png)
*Repair Table option selected in phpMyAdmin*
