Here is the fix.
There is another reason. This happened to me on RH7.0. The mysql-
server3.23.22-6 rpm installs in /var/lib/mysql with 'ls -l' = "drwx-----
--", meaning only root has access. Since directory permissions must
match for the PF_UNIX socket to work, you have to 'chown -R' this to
the appropriate paranoia value (e.g. "a+x,a+r")
In other words, on RedHat 7, do this.
ls -l /var/lib/mysql
And you should get back that some of the files are owned by root. They need
to be set to mysql, so do this
chown -R mysql:mysql /var/lib/mysql/
Then
/etc/rc.d/init.d/mysqld restart
Everything should be fine after that.
Mike
>
>
>> From: "John Jensen" <[EMAIL PROTECTED]>
>> Reply-To: [EMAIL PROTECTED]
>> Date: Fri, 26 Jan 2001 17:29:10 -0800
>> To: [EMAIL PROTECTED]
>> Subject: Re: Error 2002: can't connect to mysql.sock
>>
>> Redhat is funny. I have 7 and had tried everything in the books to
>> get mysql back up and running after a shutdown. Fortunately, I had an
>> experienced programmer who had helped me set it up. I queried him and
>> set back this command:
>> /etc/rc.d/init.d/mysqld restart
>> That did the trick.
>> It seems v.7 comes with all the packages I either had installed, or
>> tried to install on 6.2, and everything else boots with Apache, but
>> they left off mysql. Go figure.
>>
>> Apache also does not respond to the typical shutdown and restart
>> commands given in the Apache manuals. Redhat has it set up to respond
>> to their own commands.
>>
>> On 26 Jan 2001, at 19:10, Mike Tuller wrote:
>>
>>> I recently upgraded to RedHat 7, and now I can't get Mysql to start. I
>>> keep getting error 2002: can't connect. I have looked at every piece
>>> of documentation, and can't find the solution. The mysql.sock file
>>> exists, but it still can't connect.
>>>
>>> I have used the rpm of version 3.23.32 to install everything.
>>>
>>> Thanks,
>>> Mike
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>>
>>
>>
>> John Jensen
>> Jensen's Directories
>> www.college-without-classes.com/
>>
>> ---------------------------------------------------------------------
>> 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