[Tfug] installing mysql problems

Thomas Tarbet snowboarder_tom at yahoo.com
Tue Jan 27 15:52:36 MST 2009


The error message says you were trying to connect with 
'/var/lib/mysql/mysql.sock' 
and your ps output of the mysql process shows that the socket it is using is 
--socket=/tmp/mysql.sock
A possible solution would be to start mysql with the option --socket=path where path
is the correct path given in with your ps output.






________________________________
From: "doug1 at email.arizona.edu" <doug1 at email.arizona.edu>
To: tfug at tfug.org
Sent: Tuesday, January 27, 2009 2:15:00 PM
Subject: [Tfug] installing mysql problems

Hi,
I trying to install mysql on a fedora 9 machine I used:
  yum install mysql
and then yum install mysql mysql-server
everything seemed to work fine until I typed mysql at the command line and got
the following error:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (40)

I checked to see is mysql was running with the command
ps -ef|grep mysql which gave me

root      2427     1  0 05:00 ?        00:00:00 /bin/sh /usr/bin/mysqld_safe
--datadir=/var/lib/mysql --socket=/tmp/mysql.sock
--log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid
mysql     2489  2427  0 05:00 ?        00:00:04 /usr/libexec/mysqld
--basedir=/usr --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking
--socket=/tmp/mysql.sock
root      3269  3231  0 06:29 pts/0    00:00:00 emacs /ur/bin/mysqld_safe
root      3288  3231  0 06:39 pts/0    00:00:00 grep mysql

so mysql is running

also, seLinux is disabled and the firewall is disabled

any thoughts on how to fix this?


_______________________________________________
Tucson Free Unix Group - tfug at tfug.org
Subscription Options:
http://www.tfug.org/mailman/listinfo/tfug_tfug.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tfug.org/pipermail/tfug_tfug.org/attachments/20090127/95bde108/attachment-0002.html>


More information about the tfug mailing list