title: "FATAL: no pg_hba.conf entry for host" but I can connect trough pgAdmin
body: <p>I'm having a little trouble with my dev environment for a CakePHP based project.
  The thing is, CakePHP can connect in production, but if I run trough XAMPP on my PC, then throws me a
   <code>FATAL: no pg_hba.conf entry for host "myexternalip", user "dbuser", database "dbname", SSL off</code></p>
  
  <p>but using the same parameters I can connect from my PC trough pgAdmin.</p>
  
  <p>I've tried some googling tips that I've found like copy the <code>libpq.dll</code> from <code>c:\xampp\php</code> to <code>c:\xampp\apache\bin</code> but, no luck, had checked <code>pnp.ini</code> and <code>extension=php_pdo_pgsql.dll</code> line is uncommented, had tried reboot apache several times but nothing changes</p>
  
  <p>The project is hosted under heroku platform and my <code>/app/config/database.php</code> looks like</p>
  
  <pre><code>public $production = array(
      'datasource' =&gt; 'Database/Postgres',
      'persistent' =&gt; false,
      'host' =&gt; 'anywhere.at.amazonaws.com',
      'login' =&gt; 'dbuser',
      'password' =&gt; 'dbpwd',
      'database' =&gt; 'dbname',
      'encoding' =&gt; 'utf8',
  );
  </code></pre>
  
  <p>here's the Stack Trace</p>
  
  <pre><code>- CORE\Cake\Model\Datasource\DboSource.php line 260 → Postgres-&gt;connect()
  - CORE\Cake\Model\ConnectionManager.php line 105 → DboSource-&gt;__construct(array)
  - CORE\Cake\Model\Model.php line 3613 → ConnectionManager::getDataSource(string)
  - CORE\Cake\Model\Model.php line 1155 → Model-&gt;setDataSource(string)
  - CORE\Cake\Model\Model.php line 3640 → Model-&gt;setSource(string)
  - CORE\Cake\Model\Model.php line 827 → Model-&gt;getDataSource()
  </code></pre>
  
  <p>Can anyone give me another hint that could help?</p>