Title: Database Connection Error
Last modified: August 21, 2016

---

# Database Connection Error

 *  [Sam93536](https://wordpress.org/support/users/sam93536/)
 * (@sam93536)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/database-connection-error-31/)
 * Hello!
 * So I took a completely functioning site that is up and copied everything over
   to another server.
 * I want this site to connect to the same database so I did not change anything
   in wp-config
 * I am getting the error: ‘Error establishing a database connection’
    from a wordpress
   looking page when accessing the site on the new server
 * The Db has not changed and still works for the old site but will not for the 
   new. Any explanation for this issue?
 * thank you

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/database-connection-error-31/#post-4986483)
 * Most hosts do not allow cross-server database connections.
 *  Thread Starter [Sam93536](https://wordpress.org/support/users/sam93536/)
 * (@sam93536)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/database-connection-error-31/#post-4986484)
 * quick advice from one more experienced than I.
 * Just what I was looking for, thanks a lot!
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/database-connection-error-31/#post-4986485)
 * No problem. Have you had a look at some of the site cloning or duplicating plugins?

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

The topic ‘Database Connection Error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/database-connection-error-31/#post-4986485)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
