title: SQLSTATE[HY000] [2005] Unknown MySQL server host 'localhost:3306' (2)
body: <p>currently i am facing above problem in laravel. basically this project is setup on mac OS x and currently i am working on it in Linux. so when i run it is on browser it give me that error. i have also changed the my database details in database file. but now this error comes. so can you please tell me how can i fix it.</p>
  
  <p>Open: /var/www/laravel-projects/wit/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php</p>
  
  <pre><code>*/
  public function createConnection($dsn, array $config, array $options)
  {
  $username = array_get($config, 'username');
  $password = array_get($config, 'password');
  return new PDO($dsn, $username, $password, $options);
  }
  </code></pre>
  
  <p>Thanks</p>