Jani Taskinen wrote: > FYI: php.ini has this directive to set mysql.sock path: > > mysql.default_socket=/Private/tmp/mysql.sock > > ie. you don't set it in configure but in php.ini. > And the fix committed now only affects the builtin mysql libs. > If you're using external libs, they should know about the location. > > --Jani
I think I've read similar mail about pgsql. (I thought it was feature request, but I couldn't find it...) The user is saying pqsql's socket file is defualt to /tmp, but there is no way to set socket directory to other places. It's also configurable using environment PGHOST enviroment variable. == from pgsql manual == PGHOST sets the default server name. If this begins with a slash, it specifies Unix-domain communication rather than TCP/IP communication; the value is the name of the directory in which the socket file is stored (default "/tmp"). ======================= Environmnet variables can affect pgsql module behavior. It would be nice if PHP Manual has description about it. -- Yasuo Ohgaki > > > On 3 Nov 2001 [EMAIL PROTECTED] wrote: > > >>ID: 13918 >>User updated by: [EMAIL PROTECTED] >>Reported By: [EMAIL PROTECTED] >>Status: Closed >>Bug Type: Feature/Change Request >>Operating System: OS-X >>PHP Version: 4.0.6 >>New Comment: >> >>Hi, >> >>I agree - OS-X users can't use it otherwise as there's no means of >>manually setting that directory within configure that I could see. I'd >>think it would save you a whole load of hassle to offload that sort of >>simple change as early as possible. >> >>Regards, >> >>John >> >>Previous Comments: >>------------------------------------------------------------------------ >> >>[2001-11-03 15:32:35] [EMAIL PROTECTED] >> >>Why not in 4.1.0? >>You can consider this a bug: PHP doesn't work well without this fix. >>Although it's not a bug in PHP, it is a bug in the configure-script, >>which is a part of the PHP-distro. >> >>------------------------------------------------------------------------ >> >>[2001-11-03 15:27:09] [EMAIL PROTECTED] >> >>Fixed in CVS. Will be in 4.2.0. >> >>Derick >> >>------------------------------------------------------------------------ >> >>[2001-11-03 15:19:00] [EMAIL PROTECTED] >> >>ehh so where's the bug? >> >>-Feature Request >> >>------------------------------------------------------------------------ >> >>[2001-11-03 12:56:01] [EMAIL PROTECTED] >> >>Hi, >> >>OS-X stores this in /Private/tmp/mysql.sock - the configure script just >>needs to search that dir too. Any php script comes up with "can't find >>/tmp/mysql.sock" (unsurprisingly). >> >>I recompiled and reinstalled with that added in and it works fine now. >> >>Thanks, >> >>John >> >>------------------------------------------------------------------------ >> >> >> >>Edit this bug report at http://bugs.php.net/?id=13918&edit=1 >> >> >> >> > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]