If a user or developer has received the “Your PHP installation appears to be missing the MySQL extension which Is required by WordPress” error, this article will help him fix or resolve it. This error occurs when the PHP code in the site is not compatible with the version of PHP on the current WordPress site. More specifically, this error was triggered when the MySQL extension is outdated, PHP 7.0. We write this article to help you to fix your problem with the PHP missing MySQL extension error and complete the installation of WordPress successfully. Missing a PHP extension is not something a user should be worried about. If the users see the following message on their screen when trying to access the WordPress installation via a web browser, you are one of the many WordPress users facing the same problem.
Table of Contents
There are three steps to fix “your PHP installation that appears to be missing the MySQL extension which is required by WordPress” error.
These are the three steps to fix the error:
- Update your WordPress
- PHP version of your server
- Configure or install the MySQL extension
Update Your WordPress
Updating your WordPress is the easiest step to fix the error in just two clicks. For updating your WordPress, go to WordPress dashboard >Updates screen and check if there any core updates available, then install or update them. After that check, the error is resolved or not.
PHP version of your server
Create a info.php file and write inside <?php phpinfo(); ?>. Save the file and log into the site with SFTP using your WordPress site credentials.
Upload the info.php file on the server; you can drag and drop the file as well. Then replace the placeholder with your domain.
Configure or Install the MySQL extension
If the error is not fixed after checking the PHP version on the server, you need to check the info.php file and replace the placeholder with your site domain. Check that you have configured the MySQL extension correctly.
In conclusion, we saw the problem was occurring as “Your PHP installation appears to be missing the MySQL extension required by WordPress” error. We write this article to help users or developers to fix this error while doing WordPress installation. Three steps to resolve this problem were updating the WordPress site, the PHP version on the server, and configuring the MySQL extension.