Hi everyone! I’m hoping someone here can lend a hand.
I’m building a small web app that has a container for PHP and a container for MySQL. I have no issues with my created mysql users accessing the MySQL when using Docker locally. The users that are created in MySQL look like this:
'184.108.40.206' IP address is within my network as defined by my docker-compose.yml file.
However, when loading the identical files and scripts on an AWS EC2 instance, using ubuntu (while I develop on Windows 10 locally), even though the IP address is still defined, they can’t connect. I did discover that they can connect when the @ is
However, that won’t work locally for some reason, even though containers are named consistently and identically, as is the shared network.
localhost as well other IPs in the network (
.3 for example) don’t work.
TL;DR: My MySQL users (short of using
@'%') require different hosts to connect from based on whether the containers are running locally versus on the AWS EC2 instance. Anyone run into this? Thanks for any help you might be able to provide!