Title: wp-content/db.php missing?
Last modified: August 18, 2016

---

# wp-content/db.php missing?

 *  [junkaddy](https://wordpress.org/support/users/junkaddy/)
 * (@junkaddy)
 * [19 years ago](https://wordpress.org/support/topic/wp-contentdbphp-missing/)
 * I keep getting “Your PHP installation appears to be missing the MySQL which is
   required for WordPress” no matter what I do. I found that this error message 
   comes from wp-settings.php line 54. Where in the world am I supposed to get this
   file seeing it did not come in the download? I downloaded both the zip and the
   tat.gz versions, and it just ain’t there.
 *     ```
       if ( !extension_loaded('mysql') && !file_exists(ABSPATH . 'wp-content/db.php') )
       	die( 'Your PHP installation appears to be missing the MySQL which is required for WordPress.' );
       ```
   
 * Now, I also removed the !file_exists(ABSPATH.’wp-cointent/db.php) from the if-
   statement, and still got the error, so apparently beyond the file being missing,
   mysql extension is not loaded. HOWEVER, I already uncommented extension=php_mysql.
   dll and
    extension=php_mysqli.dll in my php.ini and I created the c:\program 
   files\php\ext directory and placed those dlls files in it along with libmysql.
   dll which i placed both in the ext and the root php installation directory. I
   have the mysql 5.xx server running and could connect with JSPs inside Tomcat (
   which I uninstaller before installing Apache HTTP server, btw).

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

 *  [shoff](https://wordpress.org/support/users/shoff/)
 * (@shoff)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/wp-contentdbphp-missing/#post-548165)
 * I have no clue how to fix it but I have the same error.
 *  [cmanalyst](https://wordpress.org/support/users/cmanalyst/)
 * (@cmanalyst)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/wp-contentdbphp-missing/#post-548169)
 * Did either of you make any progress on this? I think I am in the same boat as
   the OP. However I have not ried this yet:
 * “I created the c:\program files\php\ext directory and placed those dlls files
   in it along with libmysql.dll which i placed both in the ext and the root php
   installation directory.”
 * Please post a solution if there is one.
 * Regards,
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years, 11 months ago](https://wordpress.org/support/topic/wp-contentdbphp-missing/#post-548170)
 * There is no wp-content/db.php file. That check is to allow plugins to rewrite
   WordPress to use alternative database systems instead of mySQL. Notice the “else”
   line after it that loads wp-includes/wp-db.php instead? That’s what normally 
   loads, and it requires mySQL.
 * If you get the “_Your PHP installation appears to be missing the MySQL which 
   is required for WordPress._” message, then your PHP is configured incorrectly
   and the mysql extension is not loading.
 *  [eeaston](https://wordpress.org/support/users/eeaston/)
 * (@eeaston)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/wp-contentdbphp-missing/#post-548182)
 * Otto42 – This is not a PHP config problem – the !file_exists line is followed
   by die() (lower down in the file than the bit you mentioned).
 *  Admins – if the db.php file is not there to start with, why is it checked for
   in the install script? The check || die appears to break the install, if you 
   take it out the install continues on fine.

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

The topic ‘wp-content/db.php missing?’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 5 participants
 * Last reply from: [eeaston](https://wordpress.org/support/users/eeaston/)
 * Last activity: [18 years, 8 months ago](https://wordpress.org/support/topic/wp-contentdbphp-missing/#post-548182)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
