#33916 [Asn->Csd]: Unknown MySQL server host '.'
| From: | wez@php.net | Date: | Fri, 29 Jul 2005 14:37:02 +0000 |
| Subject: | #33916 [Asn->Csd]: Unknown MySQL server host '.' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-82670@lists.php.net to get a copy of this message | ||
ID: 33916
Updated by: wez@php.net
Reported By: deadman_great at mail dot ru
-Status: Assigned
+Status: Closed
Bug Type: PDO related
Operating System: RH fedora, core 2
PHP Version: 5.0.4
Assigned To: wez
New Comment:
Upgrade them to 0.9; this was fixed long ago.
Previous Comments:
------------------------------------------------------------------------
[2005-07-29 16:20:24] deadman_great at mail dot ru
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.
------------------------------------------------------------------------
[2005-07-29 15:33:27] wez@php.net
Please tell us which PDO/PDO_MYSQL versions you have in your PHP 5.0.4
install.
------------------------------------------------------------------------
[2005-07-29 12:10:40] tony2001@php.net
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