title: How to connect external mysql server in docker container
body: <p>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 xxx@192.168.1.13. How can Django connect to the docker host ip but not the defined server ip?</p>
  
  <p>Any body can help me to solve this problem? Many thanks.</p>
  
  <p>There are two server.</p>
  
  <p>Server A is 192.168.1.13. There is a django docker container running on it. </p>
  
  <p>Server B is 192.168.1.6. It is a mysql server.</p>
  
  <p>And I want django container to connect server B. But it reported can't connect to its host server.</p>