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

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

2 minutes read

Tutorials

You may see this error when you visit your WordPress site:

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

This is triggered by the fact that your site’s PHP code is actually not compliant with your PHP update. More precisely, the old MySQL extension that was withdrawn from PHP 7.0 is the problem.

How to solve ” Your PHP installation appears to be missing the MySQL extension which is required by WordPress “

It’s because of the old code, that you use a version of PHP above 7.0 and you see this mistake. You need to install the main WordPress files and any extensions that your website is using.

Check which version of PHP you use

If you want to know which version of PHP supports the WordPress account, you have some choices for finding out. All right, let’s go over them fast.

Your PHP installation appears to be missing the MySQL extension which is required by WordPress (2)

Update Your PHP Version

Updating PHP is easy, you can do it yourself or ask your hosting provider for help. Just like WordPress, new PHP versions are bringing with them many improvements. As it progresses, the languages become safer, faster, sleeker, less hungry for resources, and better overall. The only step forward was the jump from PHP 5.6 to PHP 7. So, here is the easiest one can update PHP.

Updating WordPress Installation

The first and fastest solution is to update WordPress to the new edition to correct this error message. Sign in and pick Alerts for this in your dashboard, Here are the steps you need to follow.

  • Go to WordPress Dashboard

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

  • Select Updates
  • Under the WordPress Updates section, click on Update Now

When this is done, visit again your website to see if the problem is solved.

For Dedicated servers

You could have a version 5.6 of MySQL if you are on a Dedicated Server. If so, and you see this mistake, add the next line to the phprc file of your site.

extension = mysql.so

Congratulations, you have finally learned How to fix Your PHP installation appears to be missing the MySQL extension which is required by WordPress Error. Moreover, some of the visitors also asked us about How to update PHP on WordPress Easily Do check the dedicated article on this.

 

 

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Related Articles

Menu