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

---

# Error establishing a database connection

 *  Resolved [anderie](https://wordpress.org/support/users/anderie/)
 * (@anderie)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-643/)
 * Hi there,
 * since yesterday without any reason the following error message occurs once I 
   try to access the wp-admin area:
 * > Warning: mysql_connect() [function.mysql-connect]: Can’t connect to MySQL server
   > on ‘127.0.0.1’ (111 “Connection refused”) in /home/u336031975/public_html/wp-
   > includes/wp-db.php on line 1416
 * I tried to connect it to another database, but that didn’t solve the problem.
   I have send my host a ticket to ask if the database is down. In the same time
   I would like to know if you have any ideas or some expierence with this issue?
 * The webhost is: Hostinger
 * Thank you and hope to get it fixed quite soon.
 * Paul

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-643/#post-5748738)
 * “Connection refused” is something your hosting provider will need to fix for 
   you. Either the database server is offline, or it’s refusing to communicate with
   your site.
 *  Thread Starter [anderie](https://wordpress.org/support/users/anderie/)
 * (@anderie)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-643/#post-5748746)
 * Thanks James,
 * in the end it turned out the I had to change the config.php (hostname) and the
   qtranslate plugin. after that everything was great.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-643/#post-5748750)
 * You’re welcome!

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

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

## Tags

 * [connection refused](https://wordpress.org/support/topic-tag/connection-refused/)
 * [database](https://wordpress.org/support/topic-tag/database/)
 * [hostinger](https://wordpress.org/support/topic-tag/hostinger/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-643/#post-5748750)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
