title: Access to mysql container from other container
body: <p>I have setup docker container with mysql that expose 3306.
  I've specified database user, database password and create a test db and give the privileges to new user.<br>
  In another container i want to accesso to this db.<br>
  So i set up new container with a simply php script that create new table in this db.<br>
  I know that mysql container's ip is 172.17.0.2 so :<br></p>
  
  <pre><code>$mysqli = new mysqli("172.17.0.2", "mattia", "prova", "prova");
  </code></pre>
  
  <p>Than using mysqli i create new table and all works fine.<br>
  But i think that connect to container using his ip address is not good.<br>
  Is there another way to specify db host? I tryed with the hostname of the mysql container but it doens't work.<br></p>