title: error connecting to DB with PHP
body: <p>I try my very best to never use php and as thus i am not well versed in it I am having a issue that I don't understand at all here I have tried a number of things including not including the table reference in /config changing to from localhost as mysql host ect.</p>
  
  <p>It will probably be something exceedingly obvious but im just not spotting it! I goes with out saying all the DB credentials are completely correct (And i can connect with it fine from scala and python)
  anway here's the error (the real username/password not there OFC)</p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000] [1044]                                   Access denied for user 'username'@'10.1.1.43' to database 'a5555413_AudioPl.users'' in /home/a5555413/public_html/drive/auth_handler.php:153 Stack trace: #0 /home/a5555413/public_html/drive/auth_handler.php(153): PDO->__construct('mysql:host=mysq...', 'username...', 'passwd') #1 /home/a5555413/public_html/drive/auth_handler.php(74): AuthHandler->GetDbConnection() #2 /home/a5555413/public_html/drive/index.php(47): AuthHandler->AuthHandler('webui') #3 {main} thrown in /home/a5555413/public_html/drive/auth_handler.php on line 153</p>
  </blockquote>
  
  <p>Connect code the const's are defined in a separate config file</p>
  
  <pre><code>function GetDbConnection() {
      $dbh = new PDO(Config::DB_PDO_CONNECT,
          Config::DB_PDO_USER,
          Config::DB_PDO_PASSWORD);
      $dbh-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
      $dbConnection = $dbh;
      return $dbConnection;
    }
  </code></pre>