September 13, 2023

Fix the “Your PHP Installation Appears to Be Missing the MySQL Extension Which is Required by WordPress” Error

Play Video

When you see the “Your PHP Installation Appears to Be Missing the MySQL Extension Which is Required by WordPress” error, it’s WordPress’s way of signaling an issue. The main culprits could be a missing MySQL extension, outdated WordPress software, or an old PHP version.


1. Check If the MySQL Extension is Enabled

Check Your PHP Version

If you’re using a PHP version newer than 5.6, you don’t need the extension. Otherwise, let’s proceed.

Upload a PHP info.php File

  1. Access the root directory of your WordPress site.
  2. Use tools like FileZilla or Hostinger’s file manager.
  3. In the Public HTML folder, create a new file named phpinfo.php.
  4. Add this code snippet:
    <?php
    phpinfo();
    ?>
  5. Save and then visit your website, adding /phpinfo.php at the end of the URL.
  6. Look for the “Client API Version” Row: If it’s not there, the extension might not be installed.

Tip: On Hostinger, manage PHP extensions via the H panel. Head to Advanced, then PHP configuration. Choose your PHP version and ensure the MySQL extension option is checked.


2. Ensure the PHP Extension is Properly Configured

  1. Check the Loaded Configuration File
    It’s in the PHP info.php file you just used.
  2. Backup and Delete
    Download the PHP info.php file to your computer. Then, remove it from your server.
  3. Check the Error
    If it’s still there, let’s continue.

3. Verify the PHP Version You’re Using

  1. Check PHP Version via WordPress
    Head to your WordPress admin dashboard, go to tools, pick ‘Site Health’, and then click the info tab.
  2. Use the PHP info File
    Use the file you uploaded earlier. Scroll down to the core section and look for the row that says PHP version.

4. Update the WordPress Core Software

  1. Backup First
    Always back up your website’s files.
  2. Update from the Dashboard
    Head to the dashboard menu, click updates and follow the instructions.

Tip: You can also manually update by going to wordpress.org, downloading the latest version, and following their steps.


Wrapping Up

Hopefully, that error message is now history, and your WordPress site is running smoothly. Remember, every challenge has a solution. If you face another tech issue in the future, just reach out. We’re here to helwp. Happy WordPress-ing!

Required Resources

Hostinger Logo
Payment required
Credit to Hostinger
Embark on your Hostinger journey with the guidance of the Hostinger Academy YouTube channel. This resource-rich platform is dedicated to illuminating the nuances of Hostinger's hosting services, while also providing valuable insights for website management and optimization. Whether you're a novice or an experienced webmaster, the Hostinger Academy channel is your companion for a seamless and successful web hosting experience.
Visit
Fix the “Your PHP Installation Appears to Be Missing the MySQL Extension Which is Required by WordPress” Error
Welcome back!
Enter your Helwp credentials to sign in.

No Account yet? Sign Up

My Account
Menu
Give Feedback
Describe your feedback *
Rate Helwp
Share
Facebook
Twitter
LinkedIn
Reddit
Email
WhatsApp
Telegram
Pocket
Report
Problem *
Describe the problem
Want us to reply?
Your E-Mail
Affiliate Disclosure

At Helwp, we’re committed to transparency and honesty. Therefore, we want to inform you that some of the links on our website are affiliate links. This means that, at no additional cost to you, we may earn a small commission if you click through and make a purchase.

We only promote products or services that we genuinely believe in. These affiliate commissions help us to maintain the website and continue to provide you with free, high-quality WordPress content.

If you are interested in how you can support us even further, check out our support page.