title: Could'nt connect in PDO to mysql database, using apache with easyPHP on port 8080
body: <p>I'm using EasyPHP on my localhost:8080, and IIS7.5 on my localhost:80.
  Work like a charm.</p>
  
  <p>I can access phpmyadmin with no problem at this address :</p>
  
  <pre><code>http://127.0.0.1:8080/modules/phpmyadminXXXXXXXXXXXXX/
  </code></pre>
  
  <p>Using root and no password.</p>
  
  <hr>
  
  <p>My question is, why is my connection doesn't work at all. No response, no error message, nothing. The page continue to load forever...
  There is my code:</p>
  
  <pre><code>&lt;?php
  $db_server              = '127.0.0.1:8080';                 // DB Server Address
  $db_user                = 'root';                   // DB Username
  $db_pass                = '';                   // DB Password
  $db_database            = 'my_dbnameXXXX';              // Database Name
  try{
      $dbh = new PDO('mysql:host='.$db_server.'; dbname='.$db_database,$db_user, $db_pass);
      $dbh-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
      $dbh-&gt;setAttribute(PDO::ATTR_TIMEOUT,3600);
  }
  catch(PDOException $e){
      echo $e-&gt;getMessage();
  }
  
  ?&gt;
  </code></pre>
  
  <p>Yes i try with localhost:8080, doesn't work either...</p>
  
  <p>Can some one help me? Thanks. I'll stay around to response to comments or questions.</p>