note 81564 rejected from function.mysql-pconnect by nlopess
| From: | nlopess@php.net | Date: | Tue, 04 Mar 2008 19:26:40 +0000 |
| Subject: | note 81564 rejected from function.mysql-pconnect by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-136743@lists.php.net to get a copy of this message | ||
Note Submitter: ssbbstw at yahoo dot com
----
I have one server and install 2-MySQL,
Mysql-1 is port: 3306,
Mysql-2 is port: 3305,
and Create database 'abc',
first, I test php to connect Mysql-1(port is 3306),
use: mysql_pconnect( "server_ip:3306",....),
mysql_select_db('abc')... --> all OK
two, I change to connect Mysql-2 and port change to 3305:
use: mysql_pconnect( "server:3305", ... ) -> ok
but, use mysql_select_db('abc') -> error: show "No Database
'abc'"
Why ? anybody can tell me how to solution?