Error establishing a database connection


I’m attempting to set up a wordpress instance but I’m running into some difficulty with the database.

I’m using the tool at /wp-admin/setup-config.php?step=1
databasename as wordpressdb
username as wordpressuser
password as
host as

when I click submit I get the error “error establishing a database connection”

when testing using the mysql cli tool from a different computer on the same network:
mysql -h -u wordpressuser -p wordpressdb
successfully connects so I’m confident in my user/pass matches

I’ve installed wordpress using docker.

Where have I gone wrong? Or what can I use to troubleshoot next?

The page I need help with: [log in to see the link]

Source link