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.
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
- Install the extension for the PHP version in use
- Restart PHP-FPM/Apache
- Check phpinfo() for mysqli
Detailed fix by platform
Ubuntu
- php
php -v sudo apt install php8.3-mysql sudo systemctl restart php8.3-fpm
How to diagnose
- Version — PHP used by the web server
- 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:
Similar errors
Most viewed in WordPress
Other ways to find it
🧠 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.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 7 Oct 2026