ID: 33916 Updated by: [EMAIL PROTECTED] Reported By: deadman_great at mail dot ru Status: Feedback Bug Type: PDO related Operating System: RH fedora, core 2 PHP Version: 5.0.4 New Comment:
Please tell us which PDO/PDO_MYSQL versions you have in your PHP 5.0.4 install. Previous Comments: ------------------------------------------------------------------------ [2005-07-29 12:10:40] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2005-07-29 12:07:59] deadman_great at mail dot ru 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 this bug report at http://bugs.php.net/?id=33916&edit=1