Sorry to see you're encountering this issue. This error likely means either the username/password combination for Wordpress connecting to the database set in wp-config.php is incorrect, or the database isn't running. Here are a few things I'd try:
- See if the database is running. You can use the command
ps aux | grep mysqlto see if there's a mysql process running.
- Check your wp-config.php file to ensure that the database credentials set there are correct.
- Check the instance's disk space (
df -h) to ensure it's not full.
I hope those steps help you figure out the issue. Thank you for using Amazon Lightsail!
Workspaces - "An Error Has Occurred" - Message on the Top of my AWS Dashboardasked 5 months ago
Why is there this error message on my domain?asked 3 months ago
AWS Lightsail Error Message saying “Error establishing a database connection"asked 9 months ago
Error establishing a database connection with RDS and OpenLiteSpeed AIMsasked 8 months ago
Problem with deadlock on AWS RDS MySQLasked 4 years ago
Athena Error No: 100, HTTP Response Code: 502, Error Message: Failed to parse error payloadasked a day ago
SSL connection error: error:14082174:SSL routines:ssl3_check_cert_and_algorithm:dh key too smallasked 3 months ago
wordpress connection error in rds from ec2asked 4 months ago
Connection error when registering a Monitron gatewayasked a year ago
Error establishing a database connectionasked 5 months ago