You can also put this in your mysql_connect ... check out the syntax for it
but I believe you can do this:

mysql_connect("server:port:socket","username","password");

--Joe

On Tue, Jun 12, 2001 at 05:17:58PM -0500, Whit Blauvelt wrote:
> On Mon, Jun 11, 2001 at 09:12:36PM -0500, Joe Stump wrote:
> > You should be able to change your mysql.sock in your my.cnf or php.ini file 
> > and it will work. I'm thinking that it's a sock error you are getting.
> 
> Joe,
> 
> Thanks. By coincidence this appeared in the php.net annotated manual today:
> 
> ===
> [EMAIL PROTECTED]
> 12-Jun-2001 02:09
> 
> For the "Can't connect to local MySQL server through socket
> '/tmp/mysql.sock' (111)" errors: 
>  
> Set "mysql.default_socket= /var/lib/mysql/mysql.sock" in php.ini and 
> restart Apache.
> ===
> 
> I'll test later when there's less traffic on the server. Since I didn't have
> this set in either my.cnf or php.ini at all, I guess MySQL decided to change
> the default location of the file from /tmp.
> 
> Whit

Joe Stump <[EMAIL PROTECTED]>
------------------------------------------------------------------------
"To each his own - My own is GNU/Linux" --Joe Stump

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to