Title: Error: PHP missing the MySQL extension
Last modified: March 6, 2019

---

# Error: PHP missing the MySQL extension

 *  Resolved [cavegirltoys](https://wordpress.org/support/users/cavegirltoys/)
 * (@cavegirltoys)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-php-missing-the-mysql-extension/)
 * Hello! I am starting work on a new website with wordpress, however I keep getting
   this error:
    “Your PHP installation appears to be missing the MySQL extension
   which is required by WordPress.”
 * Current PHP version: 7.3
    Wordpress version: 5.1 Windows 10 operating system
 * I have looked up solutions and have tried different combinations of PHP versions
   and wordpress versions but none seem to make a difference. I have checked that
   wp-config.php has the right user information and passwords. I have uninstalled
   it and reinstalled it, tried different domains and I just keep getting the same
   errors.
 * Much of the support I could find was for linux OS.
 * Any help would be greatly appreciated!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-php-missing-the-mysql-extension%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-php-missing-the-mysql-extension/#post-11282177)
 * Which extensions are included in PHP is dependent on the server. It is not something
   you can fix in WordPress; it is something that WordPress needs in order to run.
   
   Try looking in your server control panel for the PHP version and somewhere in
   there it often has a list of extensions to load. If you can’t find it, contact
   your host for help to find it.
 *  [Dion](https://wordpress.org/support/users/diondesigns/)
 * (@diondesigns)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-php-missing-the-mysql-extension/#post-11282206)
 * What version of MySQL are you using? If you’re using MySQL 8.x, try the 5.7 branch
   instead.
 *  Thread Starter [cavegirltoys](https://wordpress.org/support/users/cavegirltoys/)
 * (@cavegirltoys)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-php-missing-the-mysql-extension/#post-11282833)
 * I saw a list of possible extensions to load but don’t know which ones are needed
   by wordpress 5.1. Do you have a list and I can make those adjustments.
 * I am using MySQL 5.7 if it makes a difference.
 * Ill check with my host as well and see if they have additional information.
 * Thanks!
    Mieke
    -  This reply was modified 7 years, 2 months ago by [cavegirltoys](https://wordpress.org/support/users/cavegirltoys/).
 *  Thread Starter [cavegirltoys](https://wordpress.org/support/users/cavegirltoys/)
 * (@cavegirltoys)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-php-missing-the-mysql-extension/#post-11283645)
 * Looks like there was an error on the hosting side and the installer was faulty.
   It seems to all be working now!
 *  [optricsdavid](https://wordpress.org/support/users/optricsdavid/)
 * (@optricsdavid)
 * [7 years ago](https://wordpress.org/support/topic/error-php-missing-the-mysql-extension/#post-11518478)
 * I found this on another site:
 * “My site will not connect to my database after upgrading to PHP 7”
 * Previous versions of PHP offered three PHP APIs for accessing a MySQL database.
   They were:
 * mysql
    mysqli PDO_MySQL PHP 7 has removed support for the mysql extension and
   affects the following:
 * Any queries using a mysql_connect function will not function.
    PHP 7 only allows
   connections to a MySQL database using mysqli or PDO_MySQL.
 * All scripts must be updated in order to continue functioning.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error: PHP missing the MySQL extension’ is closed to new replies.

## Tags

 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)
 * [PHP7](https://wordpress.org/support/topic-tag/php7/)
 * [upgrade](https://wordpress.org/support/topic-tag/upgrade/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 5 replies
 * 4 participants
 * Last reply from: [optricsdavid](https://wordpress.org/support/users/optricsdavid/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/error-php-missing-the-mysql-extension/#post-11518478)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
