Title: Database connection error with MySQL5
Last modified: August 19, 2016

---

# Database connection error with MySQL5

 *  [bergiesplace](https://wordpress.org/support/users/bergiesplace/)
 * (@bergiesplace)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/database-connection-error-with-mysql5/)
 * I have a site on 1&1 I’m trying to develop as I get the time. It worked well 
   with earlier versions of WordPress but I had to upgrade to some foegotton level
   which required MySQL5 vs. MySQL 4 which had worked fine. I finally got the site
   to work but then I had to put it aside. Now, I’ve tried to manually (auto didn’t
   work) upgrade to 3.0.5 and I’m getting “Error establishing database connection.”
   I created wp-config.php from the sample, inserting the correct db name, user,
   password and host for, my MySQL5 (after resetting the password.) ANy other suggestions,
   please?

Viewing 1 replies (of 1 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/database-connection-error-with-mysql5/#post-1949881)
 * -First, double check your wp-config.php file settings for the database name, 
   database username and database password. This is where most errors occur.
 * -Then check that you don’t need to change the database host from “localhost” 
   to something else. You can get that info from your hosting provider.
 * -Check you have actually created a database with the same database name as is
   in your wp-config.php file.
 * -Last, but not least, if all that information is correct your database probably
   has a problem with it, and you may need to contact your hosting provider.
 * There are also many threads on this topic on these forums: [http://wordpress.org/search/Error+establishing+a+database+connection?forums=1](http://wordpress.org/search/Error+establishing+a+database+connection?forums=1)

Viewing 1 replies (of 1 total)

The topic ‘Database connection error with MySQL5’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/database-connection-error-with-mysql5/#post-1949881)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
