title: PDOException SQLSTATE[HY000] [2002] Connection timed out on my local computer
body: <p>Recently I've imported my code from my server but the local code can't connect to the remote mysql database.</p>
  
  <p>So I have 2 questions :
  - Can I access to my remote databse
  If yes : why is my code not working ?
  If no : is there a way to bypass this problem ? (I don't want to make a copy of my mysql database that would run on my local computer)</p>
  
  <p>My code :
  <code>$dbh = new PDO("mysql:host={$db_host};dbname={$db_name}", $db_user, $db_pass);</code></p>
  
  <p>My remote server is from LWS.</p>