I’m trying to run Mamp appache on port 80, because the application(wordpress MU) doesn’t allow port-numbers in the domain-name.
When I run appache on the default MAMP-port, I manage to get a connection to the database, but when I run it on port 80, I get Error establishing database connection.
While on port 80, I have tried using both the default MAMP-port and default mySQL-port, I have also tried specifying the ports according to wordpress specifications, ie:
define('DB_HOST', 'localhost:8889');
Nothing of this makes any difference. I’m clueless what should I do?
When using MySQL port 3306,
this is the host:
define('DB_HOST', 'localhost');
.Related: