Title: Database Connection Error
Last modified: August 20, 2016

---

# Database Connection Error

 *  [JoeMD](https://wordpress.org/support/users/joemd/)
 * (@joemd)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/database-connection-error-16/)
 * Hey guys,
 * I’m building a WP site offline. It’s been working perfectly until today when 
   upon trying to access the site locally I got the error message “Error establishing
   a database connection.”
 * I did a bit of Googleing and saw that the most likely cause were errors in the
   wp-config file. However, I checked these and everything appears to be correct.
 * I did some more reaching but couldn’t find any other information on where the
   issue might be coming from. If anyone could help me out it would be REALLY appreciated.
 * I’m using Windows 7 and used Microsoft WebMatrix to install WordPress, however
   I also have XAMPP running Apache and MySQL.

Viewing 1 replies (of 1 total)

 *  [David Gard](https://wordpress.org/support/users/duck_boy/)
 * (@duck_boy)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/database-connection-error-16/#post-2306471)
 * Has XAMP definatly started? Check services.msc (if you running it as a service)
   or look for xampmanager.exe under processes in your task manager (if you are 
   running it as a process).
 * Even if it is running, it may be worth shutting it down and restarting it.

Viewing 1 replies (of 1 total)

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [David Gard](https://wordpress.org/support/users/duck_boy/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/database-connection-error-16/#post-2306471)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
