Create an /etc/my.cnf file and
add entries for the socket location.

Bobby Chopra wrote:

> 'which mysql' just kicks back the expected '/usr/bin/mysql'
> 
> The MySQL install was clean.
> 
> Bobby
> 
> ----- Original Message -----
> From: "Thomas Spahni" <[EMAIL PROTECTED]>
> To: "Bobby Chopra" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, September 14, 2001 12:45 PM
> Subject: Re: Connection through Unix Sockets
> 
> 
> 
>> On Fri, 14 Sep 2001, Bobby Chopra wrote:
>> 
>> 
>>> Slight problem that's confusing me a bit.
>>> 
>>> Upon connection to mysql using 'localhost' I get the age old error
>> 
> 'Can't
> 
>>> connect ... through /tmp/mysql.sock'
>>> 
>>> Before anyone screams - read the archive etc. I have tackled this
>> 
> problem
> 
>>> before but this time I am slightly confused.
>>> 
>>> The socket that mysql should be using is '/var/lib/mysql/mysql.sock',
>> 
> and if
> 
>>> I run mysqladmin version/variables I get this path echoed back at me,
>> 
> but
> 
>>> the connection error throughs back '/tmp/mysql.sock' as the path.
>>> 
>>> Have I just fouled up this time, or is there something a little strange
>>> about this set-up (Cobalt RaQ4i).
>> 
>> Bobby,
>> 
>> could it be that you have an old version of the client in your exec path?
>> 
>> what does PROMPT> which mysql
>> say??
>> 
>> Thomas
>> 
>> 
>> ---------------------------------------------------------------------
>> 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
>> 
>> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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


-- 
Gerald L. Clark
[EMAIL PROTECTED]


---------------------------------------------------------------------
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