I built a Django app in a docker container. And run it on a server with ip 192.168.1.13. And I set the Django settings.py to connect mysql server at 192.168.1.6. It is an external independent server. But when I run the container, it always say access denied for user [email protected]. How can Django connect to the docker host ip but not the defined server ip?
Any body can help me to solve this problem? Many thanks.
There are two server.
Server A is 192.168.1.13. There is a django docker container running on it.
Server B is 192.168.1.6. It is a mysql server.
And I want django container to connect server B. But it reported can't connect to its host server.