9.2 C
Thursday, March 23, 2023

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

Must read

In this article, you going to see how to solve the PHP error which is occurs when visiting the WordPress site.

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

This type of error is occurring only when the code in your site is not compatible with the version of PHP your site is currently using.

It is mainly occurs due to outdating of MySQL extension which is removed as of P-H-P 7.0

Check with the below link which helps you.


If you are using latest PHP version or greater than 7.0 and you got this error then it is due to old code that needs to be updated.

The solution for this is to upgrade the files of core WordPress to current version, also the plugin you are using.

Steps to follow for Solving this issue of PHP error.

Step 1:

You have to First check with the version of the PHP of your site is using with a phpinfo.php file.

And also make sure regarding it matches the version of PHP your panel shows for your domain

Step 2:

Next step is to update the code.

If your website is upgraded to the latest PHP version or greater than 7.0 then it is essential to upgrade your old code of your website to the latest version or above 7.0.

Also check regarding the plugins to use the newer MySQLi or PDO_MySQL extensions instead.

If you’ve installed WordPress as a One-Click Install, you can manually upgrade it in your panel.

You have to set is to auto-update.

And also update the plugin in your dashboard.

If you’ve manually installed WordPress, you can update it within the WordPress dashboard.

In the case of Dedicated servers, your MySQL version maybe 5.6. If so, and you’re seeing this error, add the following line to your site’s phprc file.

extension = mysql.so

How to insert date in MySQL using PHP

Conclusion :

Finally, with the help of above point PHP error is easy to fix and solve.

I hope you like this article and if you have any query, please comment below.

- Advertisement -spot_img

More articles


Please enter your comment!
Please enter your name here

- Advertisement -spot_img

Latest article