missing the MySQL extension WordPress Origin: Application & API Last updated 12 Oct 2026

WordPress: Your PHP installation appears to be missing the MySQL extension which is required by WordPress

PHP doesn’t have the mysqli extension loaded, so WordPress can’t talk to the database.

Exact message you may see Your PHP installation appears to be missing the MySQL extension which is required by WordPressmissing the MySQL extension
Seen on: WordPress

Meaning

Fresh servers or PHP version switches often lack php-mysql. The CLI and web PHP can be different versions with different extensions.

Common causes

  • php-mysql (mysqli) package not installed for this PHP version
  • PHP upgraded/switched without extensions
  • Web server using a different PHP than expected

⚡ Quick fix

  1. Install the extension for the PHP version in use
  2. Restart PHP-FPM/Apache
  3. Check phpinfo() for mysqli

Detailed fix by platform

Ubuntu

  1. php
    php -v
    sudo apt install php8.3-mysql
    sudo systemctl restart php8.3-fpm

How to diagnose

  1. Version — PHP used by the web server
  2. Extension — mysqli in phpinfo?

🔧 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):

adb server version doesn't match — adb server version (41) doesn't match this client (39); killing... (Android)adb server version do…aws: error: argument — aws: error: argument command: Invalid choice / Unknown options (AWS)aws: error: argumentDB connection — WordPress: Error Establishing a Database Connection (WordPress)DB connectionDefault FirebaseApp is not initialized — IllegalStateException: Default FirebaseApp is not initialized in this process (Android)Default FirebaseApp i…docker-compose: command not found — docker-compose: command not found / 'compose' is not a docker command (Docker)docker-compose: comma…requires at least PHP — WordPress: Your server is running PHP version 7.2 but WordPress 6.x requires at least 7.4 / This plugin requires a newer version of PHP (WordPress)requires at least PHPSDK location not found — SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in local.properties (Android)SDK location not foundsendmail: not found (PHP mail) — PHP: sh: 1: /usr/sbin/sendmail: not found — mail() returns false (Email / SMTP)sendmail: not found (…missing t…

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.