WordPress always thinks DB_HOST is localhost
-
I’ve tried to install WordPress on my website server, which seems to go fine until I get a standard database connection error.
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.
I’m using an AWS RDS endpoint for the DB_HOST in the configuration, but the odd thing is that the code seems to always think that my DB_HOST is localhost regardless of what I put into wp-config.php. If you look into the source code for the database, it checks the DB_HOST when passing the error above, so it is definitely checking what the DB_HOST value is.
Any thoughts?
- The topic ‘WordPress always thinks DB_HOST is localhost’ is closed to new replies.