Wordpress MySQL Connection Error

This is probably a timing problem, the db may not yet have been created when Wordpress starts up. So for the first start, comment out the wordpress service, wait until the db is created (until the log gets silent), stop the container, remove the comments, start again.
Ping @parag7777.

The next time please format your compose file as code.

2 Likes