2

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?

4

1 回答 1

0

使用 MySQL 端口 3306 时,

港口码头

这是主持人:define('DB_HOST', 'localhost');


相关

MAMP 上的 WordPress 多站点子域
设置 WordPress 多站点的最简单且推荐的方法是使用子目录。因此,当您创建一个名为“business”的新站点时,它将位于http://localhost/business/. 这是关于如何为您的网络站点使用子域的迷你教程。

于 2012-12-05T19:05:20.803 回答