Title: data base configuration problem
Last modified: August 20, 2016

---

# data base configuration problem

 *  Resolved [cactusgroup](https://wordpress.org/support/users/cactusgroup/)
 * (@cactusgroup)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/data-base-configuration-problem/)
 * when I’m editing web-config file , what should i write for the
    define(‘DB_HOST’,‘?????????’);
 * give me a sample please ? is ‘doaminname.com’ enough?
 * the installation doesn’t start because of connecting database problem!

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

 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/data-base-configuration-problem/#post-2804169)
 * You need to get that information from your host. Usually, ‘localhost’ works but
   sometimes it needs to be an IP like ‘127.0.0.1’. But it depends entirely on how
   your host has things set up. You need to ask them.
 *  [Johnb81](https://wordpress.org/support/users/johnb81/)
 * (@johnb81)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/data-base-configuration-problem/#post-2804241)
 * Refer to the section “Possible DB_HOST values” in [http://codex.wordpress.org/Editing_wp-config.php](http://codex.wordpress.org/Editing_wp-config.php)
 *  [sumair](https://wordpress.org/support/users/sumair/)
 * (@sumair)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/data-base-configuration-problem/#post-2804258)
 * I’m facing this type of error. how i escape from it?
 * (Can’t select database
 * We were able to connect to the database server (which means your username and
   password is okay) but not able to select the MySQL database.
 * Are you sure it exists?
    Does the user sumair have permission to use the MySQL
   database? On some systems the name of your database is prefixed with your username,
   so it would be like username_MySQL. Could that be the problem?)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/data-base-configuration-problem/#post-2804259)
 * This pretty much says it all:
 * > We were able to connect to the database server (which means your username and
   > password is okay) but not able to select the MySQL database.
   > Are you sure it exists?
   >  Does the user sumair have permission to use the MySQL
   > database? On some systems the name of your database is prefixed with your username,
   > so it would be like username_MySQL. Could that be the problem?)
 *  [sumair](https://wordpress.org/support/users/sumair/)
 * (@sumair)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/data-base-configuration-problem/#post-2804261)
 * resolved
 *  Thread Starter [cactusgroup](https://wordpress.org/support/users/cactusgroup/)
 * (@cactusgroup)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/data-base-configuration-problem/#post-2804290)
 * The problem was :
 * ** I HAD CHANGED THE LOCAL HOST to A PUBLIC IP**
 * thank you all , the problem resolved.

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

The topic ‘data base configuration problem’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 6 replies
 * 5 participants
 * Last reply from: [cactusgroup](https://wordpress.org/support/users/cactusgroup/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/data-base-configuration-problem/#post-2804290)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
