#34072 [Opn]: MySQL module can't connect if port is not 3306

From: Date: Wed, 10 Aug 2005 16:16:07 +0000
Subject: #34072 [Opn]: MySQL module can't connect if port is not 3306
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-83322@lists.php.net to get a copy of this message
ID: 34072 User updated by: pash_ka at fonbet dot info Reported By: pash_ka at fonbet dot info Status: Open Bug Type: PDO related Operating System: Windows XP PHP Version: 5.1.0b3 New Comment: And yes, I've tried with port 3306 - it works fine. And it also works fine with my non-standart port using mysql_connect(). So it's definetly a bug or missing future in PDO. Previous Comments: ------------------------------------------------------------------------ [2005-08-10 18:11:30] pash_ka at fonbet dot info Description: ------------ I can't connect with my MySQL server running on localhost using non-standart port. I've tried dsn mysql:host=localhost;port=6733;dbname=www (resulted with "Can't connect to MySQL server on 'localhost' (10061)" error) mysql:host=localhost:6733;dbname=www (resulted with "Unknown MySQL server host 'localhost:6733' (11001)" error) I've also tried to use ini_set('mysql.default_port', 6733); and set in php.ini I've tried it with PHP 5.1 beta3 and with php_pdo_mysql.dll from "php5-win32-latest.zip" (09.08.2005). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34072&edit=1

« previous php.bugs (#83322) next »