How to fix “your PHP installation appears to be missing the MySQL extension”

  • Published
  • Posted in Troubleshooting
  • Updated

Have you encountered the frustrating error message “Your PHP installation appears to be missing the MySQL extension which is required by WordPress”? Fear not! This common error can be easily fixed with the right troubleshooting steps.

, How to fix “your PHP installation appears to be missing the MySQL extension”, WP Wizard
Screenshot: Your PHP installation appears to be missing the MySQL extension which is required by WordPress

What Causes This Error?

This error indicates that your WordPress site cannot connect to its MySQL database. Here is the main reason why this might happen:

This usually happens when the php of the site is too high, in my case, I was using PHP 8.1, which resulted in the error. When I downgraded my PHP to 8.0 the error went away and my website was working fine after.

How to Fix the Error

Here are some steps to help you fix the “missing MySQL extension” error:


How to fix “your PHP installation appears to be missing the MySQL extension”

Step-by-Step Article:

1. Login to cPanel

2. Search for “PHP”

, How to fix “your PHP installation appears to be missing the MySQL extension”, WP Wizard

3. Select “MultiPHP Manager”

, How to fix “your PHP installation appears to be missing the MySQL extension”, WP Wizard

4. Select the domain that you want to downgrade.

, How to fix “your PHP installation appears to be missing the MySQL extension”, WP Wizard

5. Select a lower PHP version. In my case, I went from 8.1 to 8.0.
6. Click Apply.

, How to fix “your PHP installation appears to be missing the MySQL extension”, WP Wizard

Now that your PHP has been downgraded, refresh your website to check if the issue has been resolved.

Was this helpful?
YesNo
5 1 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments