Title: Random Database Error
Last modified: August 19, 2016

---

# Random Database Error

 *  [haredx](https://wordpress.org/support/users/haredx/)
 * (@haredx)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/random-database-error/)
 * Hi, I have been having an issue with my website [http://iphoneblogr.com](http://iphoneblogr.com)
   for a while now. Every once and a while when I try to load the site it will say“
   Error establishing a database connection” but other people will be able to load
   the site fine. Then after a minute or two the error just goes away without me
   changing anything.
 * I also have placed my site in a traffic exchange called Sweeva, many people have
   commented saying that my site doesn’t display for them and just gives them the
   database connection error but I will be on the site at the same time and it will
   be working just fine for me.
 * At first I thought this was an issue with my webhost, HostMonster, so I migrated
   the whole site to a new host, BlueHost, but the problem still persists. Does 
   anyone know what could be causing this?
 * Thanks in advance!

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

 *  [Alwyn Botha](https://wordpress.org/support/users/123milliseconds/)
 * (@123milliseconds)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/random-database-error/#post-1926626)
 * [http://wordpress.org/support/topic/error-establishing-a-database-connection-26?replies=37](http://wordpress.org/support/topic/error-establishing-a-database-connection-26?replies=37)
 *  Thread Starter [haredx](https://wordpress.org/support/users/haredx/)
 * (@haredx)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/random-database-error/#post-1926696)
 * Thanks, but that is not my problem. Like I said, this is not an issue with wp-
   config. All my database settings are correct. This error occurs randomly and 
   fixes itself without me changing anything.
 *  [bh_WP_fan](https://wordpress.org/support/users/bh_wp_fan/)
 * (@bh_wp_fan)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/random-database-error/#post-1926745)
 * Next time it happens, if possible, use the Error Logs icon in your cPanel to 
   look for error logs specifically related to your domain. If you can, refresh 
   your page several times while the error is there.
 * Lots of errors are logged in that location for lots of domains, so ignore anything
   that doesn’t particularly refer to your domain. Try refreshing your page several
   times while the site isn’t coming up, then check the error logs again.

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

The topic ‘Random Database Error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [bh_WP_fan](https://wordpress.org/support/users/bh_wp_fan/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/random-database-error/#post-1926745)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
