title: Connect to remote mysql server from localhost docker container
body: <p>I have doctrine config:</p>
  <pre><code>doctrine:
      dbal:
          driver:pdo_mysql
          url:&quot;mysql://%database_user%:%database_password%@%database_host%:%database_port%/%database_name%&quot;
  </code></pre>
  <p>Where database_user is root, password is root user password (re-checked), host is my server ip address, port is 3306 and name is my db name.</p>
  <p>When I use these from workbench I can connect but from running docker container for php and nginx. And this config, I get connection refused.</p>
  <p>Do I need somehow to allow connections from localhost? Why is it working from workbench then?</p>