Closed blood73 closed 6 months ago
I think you should check your ports. You have configured your connections over port 4307. However, your yml files indicate that your MySQL server is running on 3306 (default port). If you don't have any other redirection from 4307 to 3306 at this point, your port information seems to be incorrect. Try connecting to 3306 instead of 4307.
I tried to use several databases with docker container. In the PHP I have:
In docker-compose.yml I have this:
So, it works with phpmyadmin or adminer. I can see 2 databases, I can work with them. But from PHP I receive this error mysqli::__construct(): (HY000/2002): Connection refused when I uncomment this part of code:
So, I don't undertand where is problem. Is this a library problem or problem in docker?
Full docker-compose.yml