From: deadman_great at mail dot ru Operating system: RH fedora, core 2 PHP version: 5.0.4 PHP Bug Type: PDO related Bug description: Unknown MySQL server host '.'
Description: ------------ PDO Couldn't connect to MySQL. Reproduce code: --------------- <? $pdo = new PDO('mysql:host=localhost;dbname=test','root','xxxxxxxxxx'); ?> Expected result: ---------------- PDO connection. Actual result: -------------- Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2005] Unknown MySQL server host '.' (4)' in /home/tech/pages/mywatch/pdo.php:3 Stack trace: #0 /home/tech/pages/mywatch/pdo.php(3): PDO->__construct('mysql:host=loca...', 'root', 'xxxxxxxxxx...') #1 {main} thrown in /home/tech/pages/mywatch/pdo.php on line 3 -- Edit bug report at http://bugs.php.net/?id=33916&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33916&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33916&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33916&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33916&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33916&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33916&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33916&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33916&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33916&r=support Expected behavior: http://bugs.php.net/fix.php?id=33916&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33916&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33916&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33916&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33916&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33916&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33916&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33916&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33916&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33916&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33916&r=mysqlcfg