On the host OS (outside of your containers), please run:
lsof -n -i :3306
and post the output.
Also, please login to your MySQL server via commandline and run the following command, replacing “mmuser” with your database username for the mattermost database, if it’s not “mmuser”:
select user,host from mysql.user where user="mmuser";