Ashley M. Kirchner ([EMAIL PROTECTED]):

> Jeremy Wadsack wrote:

>> I've always had this "problem" with PHP/MySQL installs. And always
>> used the --with-mysql setting to point to the only library installed
>> on the system (which therefore matches the mysqld installed on the
>> system).

>     Did that and it found the mySQL installation, but refused to find the socket 
>where
> it actually is.

I know. What I was saying (perhaps not clearly) is that if PHP is
supposed to figure this out from the MySQL installation, it has never
done it on the several dozen PHP/MySQL installs I have done. I was
confirming the bug.



>> mysqld allows you to specify the location of the socket file in the
>> command-line when you call it. So, you could change your mysql startup
>> script to tell it to put the socket file in /tmp/mysql.sock.

>     That's not the point, nor what I want to do.  I have specifically told mySQL when
> I build it, to drop it's socket into something other than /tmp/mysql.sock.


Again, I wasn't implying that this was good a solution to your
problem. I meant to suggest that it was one solution and that there
are show that mysqld may not even put the socket file in the place
where you tell it, which may have nothing to do with compile-time
settings.

> The system is configured to clean out /tmp once a week, and it'd be
> stupid to have the socket, or any persistent socket in there.

I think I said that. I don't think PHP should be configured to look
there by default for that very reason. A better default would probably
be /var/mysql.sock.


> PHP has no way of being told (on the COMMAND LINE) where the socket
> is. So, as Rasmus pointed out, one has to set it in the .ini file
> since it always defaults to /tmp/mysql.sock, for whatever reason.

Ah... I haven't gotten that response yet, I don't think. The .ini file
solution seems the best (although configure setting would be nice).
I'll do that on the systems I've setup.

Thanks,


-- 

Jeremy Wadsack
Wadsack-Allen Digital Group


-- 
PHP Install 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]

Reply via email to