PHP missing the MySQL extension which is required by WordPress.

Overview

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 caused when the PHP code in your site is not compatible with the version of PHP your site is currently using. More specifically, the issue is with the outdated MySQL extension which was removed as of PHP 7.0.

If you’re using any version of PHP above 7.0 and you’re seeing this error, it’s due to old code that needs to be updated. You will need to upgrade the core WordPress files to the current version, as well as any plugins your site is using.

Updating Your Code

If your website has been upgraded to a version of PHP over 7.0 and you’re seeing this error, it means you must update your WordPress core version and plugins to use the newer MySQLi or PDO_MySQL extensions instead.

Ensure WordPress Is Up To Date!

We hope we answer the question Your PHP installation appears to be missing the MySQL extension which is required by WordPress. should you have any further problems with this error, comment below.