Re: DB::connect()
| From: | Mika Tuupola | Date: | Fri, 09 Jan 2004 10:09:14 +0000 |
| Subject: | Re: DB::connect() | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10080@lists.php.net to get a copy of this message | ||
On Fri, 9 Jan 2004, Bernd Gliss wrote:
> I'm trying to use the connect() function on a system that does not store
> the mysql.sock in the /tmp directory.
...
> Is there anything I can do about this other than restarting the mysqld
> with a different 'socket' option?
Give the correct path to the socket in the dsn. For example:
mysql://user@unix(/path/to/socket)/database
For more info please see:
http://pear.php.net/manual/en/package.database.db.intro-dsn.php
--
Mika Tuupola http://www.appelsiini.net/~tuupola/