One or more database tables are unavailable WordPress Origin: Application & API OSI layer 7 · Application Last updated 13 Oct 2026

WordPress: One or more database tables are unavailable. The database may need to be repaired.

WordPress can’t read one or more of its tables — they’re crashed (MyISAM), missing, or the table prefix in wp-config.php is wrong.

Exact message you may see One or more database tables are unavailableThe database may need to be repairedTable 'wp_options' doesn't exist
Seen on: WordPress

Meaning

Server crashes and full disks corrupt MyISAM tables. Migrations with a different $table_prefix make WordPress look for wp_ tables that don’t exist.

Common causes

  • Corrupted tables after crash/disk full
  • Wrong $table_prefix in wp-config.php
  • Tables missing after a partial import
  • Database user lacking permissions on some tables

⚡ Quick fix

  1. Check $table_prefix matches the tables
  2. Repair: define('WP_ALLOW_REPAIR', true) then visit /wp-admin/maint/repair.php
  3. Re-import missing tables from backup

Detailed fix by platform

WordPress

  1. php
    define('WP_ALLOW_REPAIR', true);   // remove after repairing
    // then open https://example.com/wp-admin/maint/repair.php

Shell

  1. php
    wp db check
    wp db repair
    wp db tables

How to diagnose

  1. Prefix — Tables vs $table_prefix
  2. Health — wp db check
  3. Disk — Free space on the DB server

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

1146 — MySQL ERROR 1146 (42S02): Table 'db.table' doesn't exist (MySQL)1146403 Forbidden wp-admin — WordPress: 403 Forbidden on wp-admin, wp-login.php or admin-ajax.php (WordPress)403 Forbidden wp-admin404 except homepage — WordPress: 404 Not Found on every page except the homepage (permalinks / .htaccess / Nginx rules) (WordPress)404 except homepageConnectionString property has not been initialized — InvalidOperationException: The ConnectionString property has not been initialized (.NET)ConnectionString prop…DB connection — WordPress: Error Establishing a Database Connection (WordPress)DB connectionPDOException: could not find driver — Laravel: Illuminate\Database\QueryException: could not find driver (SQL: select * from information_schema.tables) (Laravel)PDOException: could n…Room cannot verify the data integrity — Room cannot verify the data integrity. Looks like you've changed schema but forgot to update the version number (Android)Room cannot verify th…SFC unable to fix — Windows Resource Protection found corrupt files but was unable to fix some of them (Windows)SFC unable to fixOne or mo…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.