Wordpress 总是认为 DB_HOST 是本地主机
Wordpress always thinks DB_HOST is localhost
我已经尝试在我的网站服务器上安装 Wordpress,在出现标准数据库连接错误之前似乎一切正常。
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost
. This could mean your host’s database server is down.
我在配置中为 DB_HOST 使用 AWS RDS 端点,但奇怪的是,代码似乎总是认为我的 DB_HOST 是 localhost
,无论如何我投入 wp-config.php
的内容。如果您查看数据库的源代码,它会在传递上述错误时检查 DB_HOST,因此它肯定会检查 DB_HOST 值是什么。
有什么想法吗?
即使 wp-config.php 没有缓存,类似的事情还是发生了。一旦我重新启动我的服务器,它最终停止将 localhost 识别为数据库位置。
我已经尝试在我的网站服务器上安装 Wordpress,在出现标准数据库连接错误之前似乎一切正常。
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at
localhost
. This could mean your host’s database server is down.
我在配置中为 DB_HOST 使用 AWS RDS 端点,但奇怪的是,代码似乎总是认为我的 DB_HOST 是 localhost
,无论如何我投入 wp-config.php
的内容。如果您查看数据库的源代码,它会在传递上述错误时检查 DB_HOST,因此它肯定会检查 DB_HOST 值是什么。
有什么想法吗?
即使 wp-config.php 没有缓存,类似的事情还是发生了。一旦我重新启动我的服务器,它最终停止将 localhost 识别为数据库位置。