Title: Multisite- Error establishing database connection
Last modified: August 20, 2016

---

# Multisite- Error establishing database connection

 *  [Kathy_Goss](https://wordpress.org/support/users/kathy_goss/)
 * (@kathy_goss)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/multisite-error-establishing-database-connection/)
 * I just migrated my site from shared-hosting to cloud server. I want to use the
   old site as test site. I took the following steps:
    1. Changed config.php: Domain
   current site to new domain name 2. Changed database options: Site URL & home 
   to new domain. 3. New domain sub-directory = old site directory
 * Trying to launch test site get error: “error establishing database connection”.
 * I then called hosting provider and they checked and they said everything looked
   and checked out fine individually but could not figure out why the database would
   not connect. They believe this may be a multi-site issue. What did we miss?

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

 *  [CoderJosh](https://wordpress.org/support/users/coderjosh/)
 * (@coderjosh)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/multisite-error-establishing-database-connection/#post-2184000)
 * Did you create a new database for the test site or did you copy your existing
   database?
 * Also, have you checked that you can log in manually (using a tool like phpMyAdmin,
   for example) with the database login credentials configured in wp-config.php 
   of the test site?
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/multisite-error-establishing-database-connection/#post-2184092)
 * Are you actually using the multisite feature, or do you just have multiple installs?

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

The topic ‘Multisite- Error establishing database connection’ is closed to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 2 replies
 * 3 participants
 * Last reply from: [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/multisite-error-establishing-database-connection/#post-2184092)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
