ghyll
Forum Replies Created
-
Forum: Localhost Installs
In reply to: MAMP localhost – Error establishing a database connectionI 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).
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