title: Invalid data source names - PDO
body: <p>So I've had this code running for PDO connection to my database.
  Since last couple of hours, I'm getting a weird error called "<strong>invalid data source name</strong>". </p>
  
  <p>I've searched quite a bit but I'm getting no solutions for it. What might be the reason?</p>
  
  <p>Connection Code</p>
  
  <pre><code>&lt;?php
  $connectionString = 'mysqlhost=127.0.0.1;dbname=cdm';
  try
  {
  $conn = new PDO($connectionString, 'root', 'PASS1234');
  $conn-&gt;setAttribute(PDOATTR_ERRMODE, PDOERRMODE_EXCEPTION);
  }
  catch(PDOException $e)
  {
  echo $e-&gt;getMessage();
  }
  
  var_dump($conn);
  ?&gt;
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <pre><code>invalid data source nameNULL
  </code></pre>