Title: No Database Connection Localhost (Mac / Xampp)
Last modified: August 31, 2016

---

# No Database Connection Localhost (Mac / Xampp)

 *  Resolved [loos](https://wordpress.org/support/users/loos/)
 * (@loos)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/no-database-connection-localhost-mac-xampp/)
 * Hey,
 * I have been using wordpress for some weeks now on a windows computer. I recently
   bought a macbook pro so, as you might expect, i need to import my site to my 
   mac.
    (it is not a problem to start over since i was not that far in creating
   the website)
 * The only thing is that whenever i try to acces localhost/wordpress it gives me
   this error message: ” Error Establishing a database connection”
 * I have messed around a lot with files and settings to make it work, which it 
   did one time but then it gave me another error, so now i have deleted the edited
   wordpress file in /htdocs and hoping that anyone here could help me.
 * Coen

The topic ‘No Database Connection Localhost (Mac / Xampp)’ is closed to new replies.

## Tags

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

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 0 replies
 * 1 participant
 * Last reply from: [loos](https://wordpress.org/support/users/loos/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/no-database-connection-localhost-mac-xampp/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
