Skip to content

Instantly share code, notes, and snippets.

@ss23
Created June 30, 2012 21:13
Show Gist options
  • Save ss23/3025545 to your computer and use it in GitHub Desktop.
Save ss23/3025545 to your computer and use it in GitHub Desktop.
ss23@win:~$ cat test.php
<?php
$pdo = new PDO("mysql:host=shard1.tempestintheaether.org;port=5673;dbname=nel", 'foo', 'bar');
ss23@win:~$ php test.php
PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'foo'@'120.138.30.26' (using password: YES)' in /home/ss23/test.php:3
Stack trace:
#0 /home/ss23/test.php(3): PDO->__construct('mysql:host=shar...', 'foo', 'bar')
#1 {main}
thrown in /home/ss23/test.php on line 3
ss23@win:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment