ID:               33916
 User updated by:  deadman_great at mail dot ru
 Reported By:      deadman_great at mail dot ru
-Status:           Feedback
+Status:           Open
 Bug Type:         PDO related
 Operating System: RH fedora, core 2
 PHP Version:      5.0.4
 New Comment:

PDO v0.3 & PDO_MySQL v0.2.

PS: I think that PDO is bundled in php 5.1.x, but I can't install it,
because zend optimizer won't work on it.


Previous Comments:
------------------------------------------------------------------------

[2005-07-29 15:33:27] [EMAIL PROTECTED]

Please tell us which PDO/PDO_MYSQL versions you have in your PHP 5.0.4
install.

------------------------------------------------------------------------

[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

Reply via email to