Title: can&#8217;t establish connection
Last modified: August 18, 2016

---

# can’t establish connection

 *  [jessetheaviator](https://wordpress.org/support/users/jessetheaviator/)
 * (@jessetheaviator)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cant-establish-connection/)
 * i got the
 * 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?
 * in the config file is the database “wordpress” and should i keep it “localhost”?
   i know myuser name and pw are right, so whats wrong?

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

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cant-establish-connection/#post-489612)
 * It depends on your host. It won’t be “wordpress”, however.
    Look in your site’s
   control panel under the mysql section for the db config or connection string 
   for the parameter. Or just contact your host and ask.
 *  Thread Starter [jessetheaviator](https://wordpress.org/support/users/jessetheaviator/)
 * (@jessetheaviator)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cant-establish-connection/#post-489635)
 * well, i use godaddy.. i got a mysql name.. its..
 * mysql31.secureserver.net
    for the host name, so is that what i have to put? along
   with my user name for my godaddy mysql acct or wordpress ? and how would i know
   if it’s localhost for sure ?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cant-establish-connection/#post-489636)
 * For sure it is NOT localhost: it’s the servername you posted above _mysql31.secureserver.
   net_ <– localhost should be replaced by this one!
 * As for the DB user = it is for the godaddy mysql account and NOT for the WP admin!
   Same for the password.
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cant-establish-connection/#post-489637)
 * Yes, your DB_HOST would be mysql31.secureserver.net
 * The database name and database user are the same value on godaddy. You actually
   give the database name and password when you create the database.
 *  Thread Starter [jessetheaviator](https://wordpress.org/support/users/jessetheaviator/)
 * (@jessetheaviator)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cant-establish-connection/#post-489639)
 * according to mysql on godaddy my database name is
    jessetheaviator user name 
   is the same and password i put in and host is mysql31.secureserver.net
 * but i still get the same message.
    i uploaded the new file to my ftp on godaddy,
   then tried to open the install.php page. im sorry to be annoying, i think im 
   just missing something.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cant-establish-connection/#post-489640)
 * 1. Make sure you are on a Linux/Unix plan, not on a Windows server.
    2. Are you
   opening the install.php in a browser or from the ftp? <— this would be a mistake!
 *  Thread Starter [jessetheaviator](https://wordpress.org/support/users/jessetheaviator/)
 * (@jessetheaviator)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cant-establish-connection/#post-489641)
 * oh… didnt know it had to be linux/unix.. im not sure what godaddy uses. and im
   using windows on my computer, not sure if that makes a difference
 *  Thread Starter [jessetheaviator](https://wordpress.org/support/users/jessetheaviator/)
 * (@jessetheaviator)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cant-establish-connection/#post-489642)
 * actually, it says Operating System: Linux
    and yea, im making sure i hopen it
   via http, not ftp
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cant-establish-connection/#post-489643)
 * Most people report difficulties with the Win server. And the users who have more
   experience with your host always advise to move to a *nix server.
    It was said
   it’s a painless move done in a few minutes. Search around…
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cant-establish-connection/#post-489644)
 * If out of any other resources…
    [http://wordpress.org/search/installing+on+godaddy?forums=1](http://wordpress.org/search/installing+on+godaddy?forums=1)
   browse the topics about it
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cant-establish-connection/#post-489646)
 * The search mentioned by moshu should turn up this:
    [http://wordpress.org/support/topic/90720?replies=6](http://wordpress.org/support/topic/90720?replies=6)
 * Also, in that thread I provided you should be able to access your database with
   phpMyAdmin so make sure you can do that.
 * Finally, if you are totally stumped, put in a request at [http://install4free.wordpress.com/](http://install4free.wordpress.com/)
   for a free installation.

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

The topic ‘can’t establish connection’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 11 replies
 * 4 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [19 years, 6 months ago](https://wordpress.org/support/topic/cant-establish-connection/#post-489646)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
