How to Fix Php Missing MySQl extension required by Wordpress ⌚

Basic tips to troubleshoot the issue

  1. Check What Version of PHP You’re Using

  2. Update the Core WordPress Software

  3. Check to See If the MySQL Extension Is Installed

  4. Make Sure PHP Extension Is Configured Properly

The first step to diagnose this issue is to figure out which version of PHP your WordPress site’s server is running. The answer to this question will dictate the next steps that you take.To check this, connect to your WordPress site’s server using FTP. You can get your FTP credentials from your web host and you’ll also need an FTP client to connect.If your host is using cPanel, you can use the cPanel File Manager tool. Once you’ve connected to your server, create a new file called phpinfo.php in the root directory of your WordPress site. This should be the same folder that contains your wp-config.php file.
















Once you save the file (and re-upload the saved version if needed), navigate to yoursite.com/phpinfo.php, making sure to replace yoursite.com with your actual domain name.You should see a screen that displays a lot of different information about the PHP configuration on your server. Scroll down to the Core section and look for the PHP Version item. Pay attention to the numbers – you should see something like x.x.x. E.g. 7.2.25 or 5.6.8:















Update the Core WordPress Software

If your server is using PHP 7+, the most likely cause of this error is that you’re running an old version of WordPress. If you’re using WordPress version 3.9 or lower, that can trigger this error.Therefore, the fix is to update your WordPress software, which will also come with lots of other features, security, and performance improvements.To manually upgrade your WordPress version, first, make sure you have a backed up version of your site. Then, go to WordPress.org and download the most recent copy of the WordPress software.
















Once you’ve downloaded it, extract the zip file to your computer. Then, open the folder that contains all of the WordPress files and delete the following items:
  • The wp-config-sample.php file.
  • The wp-config.php file (you might not see this file – just make sure to delete it if it’s there).
  • The wp-content folder.

Once you’ve deleted those items, upload the remaining files/folders to your server via FTP. When prompted about duplicate files by your FTP client, tell it to overwrite all files:

Check to See If the MySQL Extension Is Installed

If your server is still using PHP 5.6 or lower, your server might be missing the MySQL extension that WordPress requires.To check if this is the case, go back to the phpinfo.php file that you uploaded to your server in Step #1.Look for a section named either mysql or mysqli.













If the MySQL extension is installed, you should see a version number next to the Client API library version item:

Make Sure PHP Extension Is Configured Properly

If you’re using PHP 5.6 or lower and the extension is installed, the issue might be that it’s not configured properly.


    Two common issues:
  • Uploading a php.ini file that’s intended for Windows servers when you’re using a Linux server
  • Incorrect file paths.


  • You can find the location of your php.ini file in the phpinfo.php file that you created before:


    In case of any issues in PHP missing MySQl extension in Wordpress: Get in touch

0 Comments