Title: Setting up sql database
Last modified: August 19, 2016

---

# Setting up sql database

 *  Resolved [dailyfuzzone](https://wordpress.org/support/users/dailyfuzzone/)
 * (@dailyfuzzone)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/setting-up-sql-database/)
 * I’m having some issues getting WP to connect with the MySQL database on my server.
   As far as I know, the database/user name is right and the password is dead on.
   It won’t connect up. Can anyone give me some hints?

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

 *  [Jeremy Clark](https://wordpress.org/support/users/jeremyclark13/)
 * (@jeremyclark13)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/setting-up-sql-database/#post-747201)
 * There are a couple different errors wordpress will give you when it can’t connect
   to the database. Paste the error here.
 *  Thread Starter [dailyfuzzone](https://wordpress.org/support/users/dailyfuzzone/)
 * (@dailyfuzzone)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/setting-up-sql-database/#post-747202)
 * Here is what it says…
 * Error establishing a database connection
 * This either means that the username and password information in your wp-config.
   php file is incorrect or we can’t contact the database server at localhost. This
   could mean your host’s database server is down.
 *  * Are you sure you have the correct username and password?
    * Are you sure that
   you have typed the correct hostname? * Are you sure that the database server 
   is running?
 * If you’re unsure what these terms mean you should probably contact your host.
   If you still need help you can always visit the WordPress Support Forums.
 *  Thread Starter [dailyfuzzone](https://wordpress.org/support/users/dailyfuzzone/)
 * (@dailyfuzzone)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/setting-up-sql-database/#post-747203)
 * I have checked the server and it is running. However, I’m not sure about the 
   host name. I assume it would be localhost. My hosting company is godaddy
 * I have set up wordpress multiple times before, but I have never had this many
   issues with it.
 *  [Jeremy Clark](https://wordpress.org/support/users/jeremyclark13/)
 * (@jeremyclark13)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/setting-up-sql-database/#post-747205)
 * Godaddy doesn’t use localhost for the DB host value. You’ll have to find it though
   your hosting control panel. Here is more info about it.
    [http://codex.wordpress.org/Editing_wp-config.php#Database_host](http://codex.wordpress.org/Editing_wp-config.php#Database_host)
 *  Thread Starter [dailyfuzzone](https://wordpress.org/support/users/dailyfuzzone/)
 * (@dailyfuzzone)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/setting-up-sql-database/#post-747209)
 * Thanks, that was exactly the page I needed. Got it all working.

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

The topic ‘Setting up sql database’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 5 replies
 * 2 participants
 * Last reply from: [dailyfuzzone](https://wordpress.org/support/users/dailyfuzzone/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/setting-up-sql-database/#post-747209)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
