Title: Data Base Error
Last modified: February 10, 2026

---

# Data Base Error

 *  [bgphoto](https://wordpress.org/support/users/bgphoto/)
 * (@bgphoto)
 * [3 months, 4 weeks ago](https://wordpress.org/support/topic/data-base-error-20/)
 * I could not login to my WP Admin. It said it needed to repair the data base. 
   When it finished the repair attempt it gave me this error:
 * The `wp_options` table is not okay. It is reporting the following error: `Table
   is marked as crashed and last repair failed`. WordPress will attempt to repair
   this table…
       Failed to repair the `wp_options` table. Error: `Number of rows
   changed from 0 to 617`
 * Any idea how to fix that? I could not find a file with the name “wp_options”.
 * Thanks for any help!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Kirtikumar Solanki](https://wordpress.org/support/users/solankisoftware/)
 * (@solankisoftware)
 * [3 months, 4 weeks ago](https://wordpress.org/support/topic/data-base-error-20/#post-18816876)
 * Hi,
 * This usually means the **wp_options database table is corrupted/crashed**. YouFirst
   please **take a full database backup** before trying anything. Then you can try
   these steps:
 * • **Repair via phpMyAdmin:**
   Go to phpMyAdmin → select your WP database → tick`
   wp_options` table → choose **Repair table** from the dropdown.
 * • **WordPress DB repair mode:**
   Add this line in `wp-config.php`:`define('WP_ALLOW_REPAIR',
   true);`Then visit: `yourdomain.com/wp-admin/maint/repair.php` and run repair.(
   Remove the line afterward for security.)
 * • If repair fails, contact your **hosting provider** — sometimes MySQL crashes
   need server-level repair.
 * • If you have a recent backup, restoring it may be the safest option.
 * Also, `wp_options` is a database table (not a file), so you won’t find it in 
   File Manager.
 * Hope this helps 🙂
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [3 months, 4 weeks ago](https://wordpress.org/support/topic/data-base-error-20/#post-18816978)
 * Use the PHPMYADMIN method. At this point, the internal method probably won’t 
   work.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdata-base-error-20%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [3 months, 4 weeks ago](https://wordpress.org/support/topic/data-base-error-20/#post-18816978)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
