Title: WP_DEBUG = deprecated: mysql_connect()
Last modified: August 21, 2016

---

# WP_DEBUG = deprecated: mysql_connect()

 *  [thegh0sts](https://wordpress.org/support/users/thegh0sts/)
 * (@thegh0sts)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_debug-deprecated-mysql_connect/)
 * Hi there,
 * I was running theme-check to validate my theme and i got a message saying i had
   to have WP_DEBUG enabled in the wp-config.php file. I did so and now it’s showing
   up an error message saying that mysql_connect has been deprecated.
 * Should I just disable WP_DEBUG and wait till it gets fixed?

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_debug-deprecated-mysql_connect/#post-4120828)
 * Is this on a local server or a remote/hosted one?
 *  Thread Starter [thegh0sts](https://wordpress.org/support/users/thegh0sts/)
 * (@thegh0sts)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_debug-deprecated-mysql_connect/#post-4120832)
 * localhost
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_debug-deprecated-mysql_connect/#post-4120921)
 * Fair enough. Just wanted to check as running WP_DEBUG on a publically accessible
   server isn’t advisable.
 * This issue isn’t going to fix itself, so turning debug off won’t really help.
   The likely suspects are your theme and your active plugins. Does the warning 
   disappear when using the default Twenty Thirteen theme with **all** plugins deactivated?
 *  [jon](https://wordpress.org/support/users/adiant/)
 * (@adiant)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_debug-deprecated-mysql_connect/#post-4121095)
 * This is a known problem with XAMPP Version 1.8.3 and any other hosting that uses
   PHP Version 5.5 (or newer).
 * There is more info and some links here:
    [http://wordpress.org/support/topic/wordpress-core-and-mysqli_connect?replies=2](http://wordpress.org/support/topic/wordpress-core-and-mysqli_connect?replies=2)
 * I just ran into this problem last night and switched to XAMPP 1.8.2 which is 
   fully supported by the XAMPP folks, too.
 *  [AzizSaleh](https://wordpress.org/support/users/azizsaleh/)
 * (@azizsaleh)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp_debug-deprecated-mysql_connect/#post-4121122)
 * You can use the following library if you do not have mysql_connect enabled by
   have PDO enabled:
 * [https://github.com/AzizSaleh/mysql](https://github.com/AzizSaleh/mysql)
 * Copy those files to a folder and then in your wordpress wp-includes/load.php 
   file replace the following two lines:
 *     ```
       wp_load_translations_early();
       die( __( 'Your PHP installation appears to be missing the MySQL extension which is required by WordPress.' ) );
       ```
   
 * With the following:
 *     ```
       $pathToMySQL = 'C:\\xampp\\htdocs\\mysql\\';
       require_once($pathToMySQL . 'MySQL_Definitions.php');
       require_once($pathToMySQL . 'MySQL.php');
       require_once($pathToMySQL . 'MySQL_Functions.php');
       ```
   

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

The topic ‘WP_DEBUG = deprecated: mysql_connect()’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 4 participants
 * Last reply from: [AzizSaleh](https://wordpress.org/support/users/azizsaleh/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/wp_debug-deprecated-mysql_connect/#post-4121122)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
