I have a LAMP container. I want to run WordPress, but it cannot connect to Mysql.
I set the container port mapping to 3307:3306 because another container use the default mysql port. I tried to connect from host to the container's mysql server to test it, mysql -u xxxx -h 127.0.0.1:3307
but the result is:
ERROR 2005 (HY000): Unknown MySQL server host '127.0.0.1:3307' (0)
I tried to change the bind address 127.0.0.1 to 0.0.0.0 in the container's mysql config but nothing changed.
What's wrong with this?