You upgraded your website’s PHP version inside cPanel to PHP 8.2 or 8.3 for faster performance, refreshed your homepage, and got hit with a plain white message: “Your PHP installation appears to be missing the MySQL extension which is required by WordPress.”
Don’t worry—your MySQL database and posts are 100% safe! The PHP runtime simply doesn’t have its MySQL driver checkbox ticked for the new PHP version.
Outgrowing Free Hosting Limits? Claim Our Verified Partner Discounts
Upgrade to fast Hostinger LiteSpeed WordPress Hosting (+20% extra discount), scale on Cloudways Managed Cloud, grab low-cost Namecheap cPanel/Domains, or launch a 24/7 Shockbyte Minecraft Server:
Fix #1: Enable mysqli and nd_mysqli in cPanel (Fixes 90% of Sites)
- Log into cPanel and click Select PHP Version (under the Software section).
- Click the Extensions tab at the top.
- Scroll down to the M section and check:
mysqli(ornd_mysqli)mysqlndpdo_mysql(ornd_pdo_mysql)
- If cPanel reports a conflict between
mysqliandnd_mysqli, uncheck standardmysqliand keepmysqlnd+nd_mysqlichecked.
Fix #2: Upgrading Legacy WordPress Installations on PHP 8+
If your WordPress core hasn’t been updated in years, temporarily switch PHP back to 7.4 in cPanel, run the 1-click WordPress Core update inside your dashboard, and switch right back to PHP 8.2! Preparing a database migration? Format and verify your SQL dumps in our Free WordPress SQL Domain Replacer & Query Formatter.
🛠️ Free Interactive Webmaster Tools & High-Traffic Guides
- All 26 Free Webmaster & Developer Tools — DNS/SSL Checker, IP & Host Detector, JSON Formatter, Cron Generator, SPF/DMARC Builder & more.
- Live Minecraft Server Status & Ping Checker (Java & Bedrock) — Test port forwarding, MOTD, latency, and player capacity.
- 60-Second Hosting Upgrade Decision Calculator — Find out if your site needs Shared cPanel or Managed Cloud VPS.
- Cloudways vs Shared Hosting (Hostinger & Namecheap) — Exact traffic and RAM thresholds for upgrading.
Frequently Asked Questions (FAQ)
Why does WordPress say my PHP installation is missing the MySQL extension?
Either the mysqli / nd_mysqli extension is unchecked inside cPanel’s ‘Select PHP Version’ menu, or you are running an older WordPress version on PHP 8.x that still looks for a legacy driver.
How do I enable the MySQL extension in cPanel for PHP 8.1, 8.2, or 8.3?
Open cPanel -> Select PHP Version -> Extensions tab, and check the boxes for ‘mysqli’, ‘mysqlnd’ (or ‘nd_mysqli’), and ‘pdo_mysql’.
Can an outdated plugin trigger the missing MySQL extension error?
Yes. If an older plugin directly calls removed legacy database functions instead of standard WordPress database classes, PHP 8+ throws a fatal error.
Follow FreeHosting.Live on Google News for daily WordPress troubleshooting guides, free webmaster tools, and hosting benchmarks.