admin管理员组

文章数量:1122846

i am facing the issue of 3 WordPress websites on the same Amazon s3 instance. when I open wp-admin in all of them, it shows an error in the database connection. frontend is all working ok. it's just a backend I am facing the issue.

i am facing the issue of 3 WordPress websites on the same Amazon s3 instance. when I open wp-admin in all of them, it shows an error in the database connection. frontend is all working ok. it's just a backend I am facing the issue.

Share Improve this question edited Oct 2, 2024 at 9:07 fuxia 107k38 gold badges255 silver badges459 bronze badges asked Oct 2, 2024 at 6:18 Gaurav JainGaurav Jain 11 bronze badge 3
  • The database connection should be the same. Do you have caching set up e.g. Cloudfront? Your front end origin server might be broken too, but the cached version is still working. – Rup Commented Oct 2, 2024 at 10:09
  • Oh you said S3 instance. Did you mean EC2 instance? S3 is static. If you have a static copy of your site on S3 then it wouldn't notice if the database broke. – Rup Commented Oct 2, 2024 at 10:10
  • The obvious questions though are: 1) is the database configuration correct? 2) is the database running?. Can you connect to the database from elsewhere, and from a command-line client on the server you're running WordPress on? Where is the database, on the same box or on RDS? Are there firewalls / VPC security rules between the host server and the database? etc. – Rup Commented Oct 2, 2024 at 10:12
Add a comment  | 

1 Answer 1

Reset to default 0

First of all, you should check the DB Configuration at wp-config.php, is the name and the db user+pw correct? Does the DB User have all the necessary permissions to the DB? Is the DB Server running at all?

You find more info how wp config should like over here: https://help.dreamhost.com/hc/en-us/articles/214693268-WordPress-wp-config-php-overview

本文标签: error establishing database for all wordpress on same instance