mysql->connect unix socket and host:port feature
| From: | Pierre-Alain Joye | Date: | Sat, 09 Feb 2002 11:42:45 +0000 |
| Subject: | mysql->connect unix socket and host:port feature | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-4514@lists.php.net to get a copy of this message | ||
hello,
Just a feature request for pearDB, specific to mysql.
$idconn=mysqlunderscoreconnect({localhost.13360:/temp/mysqlweb60.sock},{root,mo
tdepasse}); Use when you have many virtual server with their own http server,
mysql server (separate instances).
is not supported by the dsn parser and by the mysql->connect() function.
Have made modification to the connect function (adding host and port values to
$dbhost), that will be cleaner to include it in the dsn parser.
I should submit the patch to the list except if you considerer this rare case
not important.
hth
pa