Title: Remote Database
Last modified: August 20, 2016

---

# Remote Database

 *  [jburns12](https://wordpress.org/support/users/jburns12/)
 * (@jburns12)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/remote-database/)
 * I am trying connecting to an external mysql database and having problems. Basically
   the blog exists on one server and I am moving it to another except for the database
   which I am leaving on the original server and connecting to externally.
 * So I copied the entire wordpress folder over to the new server and simply modified
   the config file which contains the database info to point to the original host
   where the database still is (originally it said localhost for hostname, now I
   changed it to the ip address) I also white listed the ip address of the new server
   with the old one still hosting the database.
 * /** MySQL hostname */
    define(‘DB_HOST’, ‘174.120.172.125’);
 * Shouldnt this have worked?

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

 *  [RichardWPG](https://wordpress.org/support/users/richardwpg/)
 * (@richardwpg)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/remote-database/#post-2492196)
 * Check your database credentials with your hosting provider.
 *  [Tim S](https://wordpress.org/support/users/tim-s/)
 * (@tim-s)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/remote-database/#post-2492200)
 * You may need to authorize a remote MySQL connection. I know this is the case 
   with servers using cPanel. Look in your control panel and see if there’s an option
   for remote MySQL connections. If there is you may have to add the new server’s
   IP address to the old server so it can connect.

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

The topic ‘Remote Database’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 3 participants
 * Last reply from: [Tim S](https://wordpress.org/support/users/tim-s/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/remote-database/#post-2492200)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
