Title: Database Error After Multisite Install
Last modified: August 28, 2017

---

# Database Error After Multisite Install

 *  [dosmond](https://wordpress.org/support/users/dosmond/)
 * (@dosmond)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/database-error-after-multisite-install/)
 * I had a clean install of MySQL and WordPress. I then followed the steps to setup
   a multisite with sub-directories. After making the change to wp-config.php and.
   htaccess and trying to access the site I get a “Error establishing a database
   connection”.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatabase-error-after-multisite-install%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/database-error-after-multisite-install/#post-9444416)
 * – “Error establishing a database connection” means that there is a problem with
   the connection to your database – a problem with the credentials stored in the
   wp-config.php file not matching what mysql expects.
    – Try reviewing the following
   codex for some guidance: [http://codex.wordpress.org/Common_WordPress_Errors#Error_Establishing_Database_Connection](http://codex.wordpress.org/Common_WordPress_Errors#Error_Establishing_Database_Connection)–
   Also try reviewing this tutorial: [http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/](http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/)
 *  Thread Starter [dosmond](https://wordpress.org/support/users/dosmond/)
 * (@dosmond)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/database-error-after-multisite-install/#post-9444452)
 * Thanks, I will follow the links you sent. What is strange is everything was working
   until I change the two files with exactly what WP showed me at the last step 
   for making it multisite.
 *  Thread Starter [dosmond](https://wordpress.org/support/users/dosmond/)
 * (@dosmond)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/database-error-after-multisite-install/#post-9444465)
 * I believe the data is correct. I have the following:
    DB_NAME ‘wordpress’ DB_USER‘
   root’ DB_PASSWORD ‘XXXXXXX’ (I use this when on a CLI to access MySQL DB_HOST‘
   localhost’
 * Should the DB_USER be ‘wproot’ which is in the wp_user table?
 * **_[DB\_PASSWORD Moderated: Info redacted – please do not post server sensitive
   information (passwords, etc)]_**
    -  This reply was modified 8 years, 9 months ago by [t-p](https://wordpress.org/support/users/t-p/).
    -  This reply was modified 8 years, 9 months ago by [t-p](https://wordpress.org/support/users/t-p/).
 *  Thread Starter [dosmond](https://wordpress.org/support/users/dosmond/)
 * (@dosmond)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/database-error-after-multisite-install/#post-9445770)
 * NP, the PW was not the exact one but confirming there was a value.

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

The topic ‘Database Error After Multisite Install’ is closed to new replies.

## Tags

 * [Database Error](https://wordpress.org/support/topic-tag/database-error/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 4 replies
 * 2 participants
 * Last reply from: [dosmond](https://wordpress.org/support/users/dosmond/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/database-error-after-multisite-install/#post-9445770)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
