RE: [PEAR] DB and sockets

From: Date: Thu, 24 Apr 2003 08:24:29 +0000
Subject: RE: [PEAR] DB and sockets
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5026@lists.php.net to get a copy of this message
-----Original Message----- From: Jackson Miller [mailto:jackson@coldfeetcreative.com] Sent: Wednesday, April 23, 2003 4:22 PM To: pear-general@lists.php.net Subject: [PEAR] DB and sockets > I am trying to use DB with an installation of MySQL using sockets to > connect. but I am getting "DB Error: connect failed". [snip] http://pear.php.net/manual/en/core.db.tut_dsn.php With an up-to-date version of DB, you can use a second DSN format phptype(syntax)://user:pass@protocol(proto_opts)/database Example: Connect to database through a socket mysql://user@unix(/path/to/socket)/pear Connect to database on a non standard port pgsql://user:pass@word@tcp(localhost:5555)/pear -- Christian Jørgensen | Never make any mistaeks. http://www.razor.dk |

« previous php.pear.general (#5026) next »