Bug #17239 [Opn->Fbk]: Unable to connect with remote mysqldb

From: Date: Thu, 25 Oct 2012 20:56:00 +0000
Subject: Bug #17239 [Opn->Fbk]: Unable to connect with remote mysqldb
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-9242@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=17239&edit=1 ID: 17239 Updated by: danielc@analysisandsolutions.com Reported By: babbomaria at interfree dot it Summary: Unable to connect with remote mysqldb -Status: Open +Status: Feedback Type: Bug Package: MDB2_Driver_mysqli Operating System: win2k Package Version: 1.5.0b2 PHP Version: 5.3.0 -Assigned To: +Assigned To: danielc Roadmap Versions: New Comment: -Status: Open +Status: Feedback -Assigned To: +Assigned To: danielc It sounds like some sort of misconfiguration. Perhaps you're hitting a timeout. Can you connect to the remote server using the mysql command line interface? Previous Comments: ------------------------------------------------------------------------ [2010-03-17 12:42:31] babbomari Description: ------------ i use this dsn to connect with mysql 4.0.25 or 4.1 $dsn = array( 'phptype' => 'mysqli', 'username' => 'userXX', 'password' => 'inevertellyou', 'hostspec' => 'localhost', 'database' => 'testDB', ); when i connect whith this option $options = array( 'result_buffering' => TRUE 'debug' => 2, ); //connect to the database. $mdb2 = MDB2::connect($dsn, $options); Everything works OK if i change localhost whith 'remoteserverwithMYSQLDB' or '192.168.0.123' the php code hangs up with no response. If i retray 2 times i obtain a MDB2 error that tell " Host 'HOST_NAME' is blocked because of many connection errors. Unblock with 'mysqladmin flush-hosts' " So mysqli mdb2 php and mysql are alla comunicating but i cannot get the error anywhere. php erro log don't report it mysql don't report it if (PEAR::isError($mdb2)) { die($mdb2->getMessage().$mdb2->getDebugInfo()); is not executed. So i think there is a problem in mysqli construction of remote query. NB: i can connect with that user i have all grant and all ip mask enabled. Expected result: ---------------- conect to db as i can do in normal way on localhost Actual result: -------------- script never ends but no hangup, after 2 time mysql block the host ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=17239&edit=1

« previous php.pear.bugs (#9242) next »