I’m using easyengine 4.0.17 to build my wordpress site, hosting using DigitaLocean, Ubuntu 18.04.3 (LTS) x64, 1 GB RAM.
I’ve got error like this when visiting /wp-admin
Error establishing a database connection
This either means that the username and password information in your
wp-config.phpfile is incorrect or we can’t contact the database server at
localhost. This could mean your host’s database server is down.
- Are you sure you have the correct username and password?
- Are you sure you have typed the correct hostname?
- Are you sure the database server is running?
If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
I’ve tried to follow the advices that seems to work well on this cases: ee service restart db, gives this output:
Restarting services_global-db_1 … done
Success: Service global-db restarted.
But it’s still not solving the issue.
I checked the db name, user name, password in wp-config.php, it’s align with what I see from ee site info example.com.
Can someone guide me to fix the problem? Thank you!