When visiting your WordPress site, it's possible you may see this error:
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
This is most often caused by a PHP version customization in your .htaccess or phprc files.
Check which version of PHP you're site is using
First, check which version of PHP your site is using with a phpinfo.php file.
Make sure it matches the version of PHP your panel shows for your domain.
If there is a mismatch, there is a potential customization somewhere causing the versions to be different.
Check for customizations
Check your .htaccess file for PHP customizations
First, check the .htaccess file in your website's main directory. It will most likely be located here:
Check your phprc file for PHP customizations
After confirming which version of PHP you're site is using above, check your phprc file. It will be located here:
For Dedicated servers
If you're on a Dedicated server, your MySQL version may be 5.6. If so, and you're seeing this error, add the following line to your site's phprc file.
extension = mysql.so
View the following article for instructions on how to add this information: