title: Doctrine db connection issues
body: <p>Trying to connect to a dababase which is in a different server:  </p>
  
  <p>Command line</p>
  
  <pre><code>php symfony configure:database "mysql:host=&lt;IP&gt;;dbname=&lt;db_name&gt;" &lt;username&gt; &lt;password&gt;  
  </code></pre>
  
  <p>Databases.yml</p>
  
  <pre><code>  all:   
      doctrine:     
      class: sfDoctrineDatabase     
        param:       
        dsn: 'mysql:host=&lt;IP&gt;;dbname=&lt;db_name&gt;'
        username: &lt;username&gt;       
        password: &lt;password&gt;  
  </code></pre>
  
  <p>Getting error:</p>
  
  <blockquote>
    <p>PDO Connection Error: SQLSTATE[HY000] [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond</p>
  </blockquote>