You are currently viewing Your PHP installation appears to be missing the MySQL extension which is required by WordPress (Solved)

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

If you are encountering the error message “Your PHP installation appears to be missing the MySQL extension which is required by WordPress”, you are not alone. This issue can be frustrating, but it is usually straightforward to resolve.

Why Does This Error Occur?

WordPress is based on the MySQL extension in PHP to communicate with MySQL databases. If your .htaccess has some error in the code or added an extra limitation on it then PHP can’t establish a connection to the database and this type of error message comes up.

3 Steps to Resolve the MySQL Extension Error

  1. Login to your CPanel account and go to File Manager
  2. Go to the website directory folder inside the public_html and find the .htaccess file. (If its not showing then go to the Preferences and checked/Tick on Show Hidden Files and click on the Save button.
  3. Now open the .htaccess file and remove the unnecessary code. In my case, it shows the below code as an extra that is added through the plugin.
htaccess unnecessary code removal
htaccess unnecessary code removal

 

Finally, Clear the cache if you are using any Cache Plugin and then refresh your browser and you will see the error is solved. If you are still facing the same error then you can contact our support team to examine your website thoroughly and solve the missing MySQL extension error.

Contact SKFreelancers Team

Join Us on Facebook

Leave a Reply