[Tfug] installing mysql problems

doug1 at email.arizona.edu doug1 at email.arizona.edu
Tue Jan 27 14:15:00 MST 2009


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?





More information about the tfug mailing list