Title: ghyll's Replies | WordPress.org

---

# ghyll

  [  ](https://wordpress.org/support/users/ghyll/)

 *   [Profile](https://wordpress.org/support/users/ghyll/)
 *   [Topics Started](https://wordpress.org/support/users/ghyll/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ghyll/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ghyll/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ghyll/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ghyll/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ghyll/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [MAMP localhost – Error establishing a database connection](https://wordpress.org/support/topic/mamp-localhost-error-establishing-a-database-connection/)
 *  [ghyll](https://wordpress.org/support/users/ghyll/)
 * (@ghyll)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/mamp-localhost-error-establishing-a-database-connection/#post-6490587)
 * I am having the same (or a very similar) problem installing WordPress on a 2nd
   site in MAMP. I’m using **MAMP PRO 3.4 on a mac**… so let me know if I should
   start a new thread instead.
 * I have 3 site folders inside MAMP’s htdocs: a non-WordPress site, a working WordPress
   4.2 site, and site #3. I’m trying to install WordPress 4.3 on the third site,
   but I can’t complete wp_config.php setup with either auto-install or manual edits.
   Everything I’ve tried results in “Error establishing database connection”.
 * Here are the values I’ve tried (both manually and auto-install) for wp_config.
   php:
    - Database Name: “wpress”, “wordpress”, site’s name (all 3 exist)
    - username/pw: root (MAMP default)
    - Database host: localhost, 127.0.0.1, site’s MAMP PRO hostname, `localhost:/
      Applications/MAMP/tmp/mysql/mysql.sock`
    - Table Prefix: wp_, qp_
 * Initially, I used the same procedure for site #3 that I’d used for the other 
   currently working WP install ([Installing WP locally on your Mac with MAMP](https://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMP)).
   
   I tried turning MAMP off and on again. I’ve deleted and re-created the databases.
   I’ve used both default (8888/8889) and non-default (80/3306) port settings for
   Apache and MySQL. I created a sym link (`sudo ln -s /tmp/mysql.sock /Applications/
   MAMP/tmp/mysql/mysql.sock`, and also tried the reverse) and verified that my 
   php.ini template file includes `mysql.default_socket = /Applications/MAMP/tmp/
   mysql/mysql.sock`. Nothing has worked — everything results in the “Error establishing
   database connection” screen.
 * How can we get around this error and install WordPress?
 * Thanks 🙂
    – ghyll

Viewing 1 replies (of 1 total)