Title: Changing Database Server
Last modified: August 18, 2016

---

# Changing Database Server

 *  [rezapatel](https://wordpress.org/support/users/rezapatel/)
 * (@rezapatel)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/changing-database-server-1/)
 * Hi,
 * The server address changed where my blog was hosted, and now if i try to access
   the blog, it says ‘Error establishing a database connection’.
 * I am just looking for a way to change the database server.
 * If you want to have a look at the implementation, it is [http://www.tech-trip.com](http://www.tech-trip.com)
 * Thanks,
    Reza

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

 *  [Jonathan Landrum](https://wordpress.org/support/users/jonlandrum/)
 * (@jonlandrum)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/changing-database-server-1/#post-419936)
 * The host didn’t supply you with a URL to the server’s IP?
 *  Thread Starter [rezapatel](https://wordpress.org/support/users/rezapatel/)
 * (@rezapatel)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/changing-database-server-1/#post-419991)
 * Oh, they did and I have the server address.
 * Situation is something like this:
 * 1) Application is deployed, but the database server is old
    2) I want to now 
   change the database server address, just want to know where to change.
 * Reza
 *  [Jonathan Landrum](https://wordpress.org/support/users/jonlandrum/)
 * (@jonlandrum)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/changing-database-server-1/#post-420038)
 * Okay, because when my host changes server IP’s they always point the URL to the
   new IP. That’s why I don’t understand why you don’t just point the the URL rather
   than the IP. Wouldn’t it point to the correct IP regardless of what they do?
 *  Thread Starter [rezapatel](https://wordpress.org/support/users/rezapatel/)
 * (@rezapatel)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/changing-database-server-1/#post-420045)
 * Yea, but initially I had pointed it to the IP address which held my databases.
 * Now, we’ve changed it to an individual NS for databases, which automatically 
   will resolve to the ip address which holds my database.
 * But, the issue still remains. How do I change the database server address now?
 *  [manstraw](https://wordpress.org/support/users/manstraw/)
 * (@manstraw)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/changing-database-server-1/#post-420046)
 * the database server address is in wp-config.php. The place where you enter your
   user, pass and database name.
 *  [yosemite](https://wordpress.org/support/users/yosemite/)
 * (@yosemite)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/changing-database-server-1/#post-420048)
 * Looking for wp-config.php?
 *  Thread Starter [rezapatel](https://wordpress.org/support/users/rezapatel/)
 * (@rezapatel)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/changing-database-server-1/#post-420534)
 * I think, that should do it. 😉 haha
 *  Thread Starter [rezapatel](https://wordpress.org/support/users/rezapatel/)
 * (@rezapatel)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/changing-database-server-1/#post-420535)
 * & it obviously did. Thnks a million. Been majorly rusted on the codey side of
   things!

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

The topic ‘Changing Database Server’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 4 participants
 * Last reply from: [rezapatel](https://wordpress.org/support/users/rezapatel/)
 * Last activity: [19 years, 9 months ago](https://wordpress.org/support/topic/changing-database-server-1/#post-420535)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
