Title: DataBase error &#8211; Changing only the database server
Last modified: August 18, 2016

---

# DataBase error – Changing only the database server

 *  Resolved [Abel Bottello](https://wordpress.org/support/users/akerfeldt/)
 * (@akerfeldt)
 * [19 years ago](https://wordpress.org/support/topic/database-error-changing-only-the-database-server/)
 * Hi!
 * I have 2 hosting accouts in different servers. I have the WordPress files in 
   one and the database in the other one.
    Because the mysql server from the first
   host is not running. The problem is to modify the wp-config.php, as the database
   server is different from the wordpress one I cannot leave the string: ‘localhost’.
 * The wordpress address is: [http://www.microplagio.com](http://www.microplagio.com)
   
   And the mysql server address is on [http://www.abelbotello.info](http://www.abelbotello.info)
 * I tried this:
    ` define('DB_HOST', '74.52.113.226'); define('DB_HOST', 'www.abelbotello.
   info'); define('DB_HOST', 'abelbotello.info');  And all of them including http://
   as well.
 * Nothing works. Can someone help me?

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [19 years ago](https://wordpress.org/support/topic/database-error-changing-only-the-database-server/#post-567432)
 * Well if the wiki software you’ve got running at [http://www.abelbotello.info/wiki/index.php?title=Portada](http://www.abelbotello.info/wiki/index.php?title=Portada)
   is using the same database server, look at the LocalSettings.php for the $wgDBserver
   value and use that in wp-config.php.
 * [edit – actually that probably does use localhost]
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [19 years ago](https://wordpress.org/support/topic/database-error-changing-only-the-database-server/#post-567433)
 * You might have to check with the company hosting the MySQL server and ask them
   if they even allow access to their MySQL server from an ‘external’ source.
 *  Thread Starter [Abel Bottello](https://wordpress.org/support/users/akerfeldt/)
 * (@akerfeldt)
 * [19 years ago](https://wordpress.org/support/topic/database-error-changing-only-the-database-server/#post-567495)
 * I have not thought that. Perhaps you are right and the hosting service does not
   allow external access to their database servers.
 * I will keep asking to make them restore the server in the localhost and will 
   check if I can access a remote MySQL server.
 * Thanks anyway!
 *  Thread Starter [Abel Bottello](https://wordpress.org/support/users/akerfeldt/)
 * (@akerfeldt)
 * [19 years ago](https://wordpress.org/support/topic/database-error-changing-only-the-database-server/#post-567526)
 * Well… Thanks a lot anyway.
 * The guy from the host company has fixed the problem with the mysql server.
 * So I can use the localhost now.

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

The topic ‘DataBase error – Changing only the database server’ is closed to new 
replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 2 participants
 * Last reply from: [Abel Bottello](https://wordpress.org/support/users/akerfeldt/)
 * Last activity: [19 years ago](https://wordpress.org/support/topic/database-error-changing-only-the-database-server/#post-567526)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
