Title: Error establishing a database connection
Last modified: August 20, 2016

---

# Error establishing a database connection

 *  Resolved [infected24](https://wordpress.org/support/users/infected24/)
 * (@infected24)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-293/)
 * I get this error every time i try to access my site. I read somewhere that it
   might be because i have the wrong password and username on my servers so i changed
   my password and change it on my wp-config file also, but still no result. do 
   i have to change anything else?
 * my site is hoste on 000webhost

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

 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-293/#post-2178705)
 * [http://www.000webhost.com/faq.php?ID=25](http://www.000webhost.com/faq.php?ID=25)
 *  [Gaylordcat](https://wordpress.org/support/users/gaylordcat/)
 * (@gaylordcat)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-293/#post-2178706)
 * > What does this mean?
 * Fatal error: Cannot redeclare insertnetwork() (previously declared in /home4/
   frederm2/public_html/home4/frederm2/public_html/wp-content/plugins/about-me/aboutme.
   php:240) in /home4/frederm2/public_html/home4/frederm2/public_html/wp-content/
   plugins/find-me-on/find-me-on.php on line 385
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-293/#post-2178708)
 * **Gaylordcat**
    Please start your own thread. [http://codex.wordpress.org/Forum_Welcome](http://codex.wordpress.org/Forum_Welcome)
 *  Thread Starter [infected24](https://wordpress.org/support/users/infected24/)
 * (@infected24)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-293/#post-2178867)
 * kmessinger are you sure that is the problem i have? im not sure where i am suppose
   to enter the mysql username/password…
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-293/#post-2178872)
 * > im not sure where i am suppose to enter the mysql username/password…
 *  You enter it in wp-config.php
 *  If you are having a db connection error most likely the information in your 
   wp-config.php file is incorrect. The password there and the user name must match.
   It is not necessarily but could be the same name, password you have for the “
   servers” – by that I think you mean your login to your hosted account.
 * The link gives good instructions for finding out what the problem is.
    You need
   the correct db name, the db user name, the db password and the db host name. 
   Ask your host or look on the site for the db host name.

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

The topic ‘Error establishing a database connection’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-293/#post-2178872)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
