|
derick
2012-02-02 10:55
administrator
~0001900
Last edited: 2012-02-02 10:55
|
When I run this, I get:
<font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'glens'@'localhost' (using password: NO)' in <a style='color: black' href='xdebug://-@3'>-</a> on line 3</th></tr>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> PDOException: SQLSTATE[28000] [1045] Access denied for user 'glens'@'localhost' (using password: NO) in <a style='color: black' href='xdebug://-@3'>-</a> on line 3</th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>9.6583</td><td bgcolor='#eeeeec' align='right'>655424</td><td bgcolor='#eeeeec'>{main}( )</td><td title='-' bgcolor='#eeeeec'><a style='color: black' href='xdebug://-@0'>..(null):0</a></td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>9.6583</td><td bgcolor='#eeeeec' align='right'>657240</td><td bgcolor='#eeeeec'>PDO->__construct( <span>'mysql:host=localhost;dbname=test'</span>, <span>'glens'</span>, <span>''</span> )</td><td title='-' bgcolor='#eeeeec'><a style='color: black' href='xdebug://-@3'>..(null):3</a></td></tr>
</table></font>
And this looks all right to me... |