ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
From: Brook Hurd (brookh_at_PerlmanArchitects.com)
Date: 03/29/05
- Previous message: Brendan Gibson: "RE: No script output to stdout,stderr"
- Next in thread: Marco A. Ramos: "RE: ERROR 2002: Can't connect to local MySQL server through socket'/var/lib/mysql/mysql.sock' (2)"
- Reply: Marco A. Ramos: "RE: ERROR 2002: Can't connect to local MySQL server through socket'/var/lib/mysql/mysql.sock' (2)"
- Reply: James Cooley: "Re: ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)"
- Reply: Ed Wilts: "Re: ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 29 Mar 2005 10:48:42 -0800 To: <redhat-list@redhat.com>
After installing Redhat 3 Enterprise Edition I made sure MySQL was part
of the install.
When I tried to start MySQL I got the following error:
ERROR 2002: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2)
The /var/lib/mysql directory did not exist. Even after creating the
folder, as suggested by this mailing list archives, it didn't help. The
folder permissions are root.root.
I tried uninstalling and reinstalling MySQL from the Redhat RPMs and I
still got the error. I even read previous e-mails and found little
help.
Any suggestions on what to do to make this work? I am at a loss.
The following packages are installed:
[root@W-pai-2077 mysql]# rpm -qa | grep mysql
mysql-3.23.58-15.RHEL3.1
mysql-bench-3.23.58-15.RHEL3.1
php-mysql-4.3.2-19.ent
libdbi-dbd-mysql-0.6.5-5
mysql-devel-3.23.58-15.RHEL3.1
mod_auth_mysql-20030510-1.ent
[root@W-pai-2077 mysql]# rpm -qa | grep MySQL
MySQL-shared-3.23.58-1
perl-DBD-MySQL-2.1021-3
qt-MySQL-3.1.2-13.4
MySQL-python-0.9.1-6
[root@W-pai-2077 mysql]#
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
- Previous message: Brendan Gibson: "RE: No script output to stdout,stderr"
- Next in thread: Marco A. Ramos: "RE: ERROR 2002: Can't connect to local MySQL server through socket'/var/lib/mysql/mysql.sock' (2)"
- Reply: Marco A. Ramos: "RE: ERROR 2002: Can't connect to local MySQL server through socket'/var/lib/mysql/mysql.sock' (2)"
- Reply: James Cooley: "Re: ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)"
- Reply: Ed Wilts: "Re: ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: PHP 5.2 and Mysql
... I have redhat 3.0 Enterprise, and mysql ... and php 4.3.9 (installed
from an rpm) - I can access data from my mysql ... db using php and the "pear" Db
.php. ... (comp.lang.php) - Re: PostgreSQL or MySQL on RedHat
... > I have been using MySQL on RedHat for about a year now. ... >
geek friends keep telling me that PostgreSQL is better. ... (RedHat) - Re: wacky default..
... compiling sources, and building packages was ... RedHat-style layout
with RedHat style init scripts, logfiles, and lists ... "leave MySQL off by default so a basic
installation doesn't also ... require MySQL as well due to library dependencies". ...
(comp.os.linux.setup) - Re: MySQL 4.0.x
... >> I have just recently posted a similar request and I guess the Fedora ...
>> buying RHEL are happy with this archaic MySQL version either. ... Given that it's
RedHat that seems to have the issue with the licensing, ... (Fedora) - struts failed connection to remote mySQL
... I have a struts app running on tomcat 5.0.25 running on my apple (OS ... X)and
I am trying to connect to mySQL on a Redhat 9.0 with mySQL ... (comp.lang.java.programmer)