Page 1 of 1

problem in mysql connecting

Posted: Mon Mar 03, 2003 10:06 pm
by mohdali1
I recently installed mysql database from redhat linux 7.2 distribution in form of RPM package but when I tried to connect the test database using

mysql -utest
The following error message displayed:

Error 2002:

Can't connect to local mysql server through socket "/var/lib/mysql/mysql.sock" (111)


If anyone knows please help me solve the problem

Regards
Muhammad Ali

Posted: Tue Mar 04, 2003 11:44 am
by Redcircle
you have to load the daemon first.


/usr/local/mysql/bin/safe_mysqld &

Posted: Wed Mar 05, 2003 9:41 pm
by mohdali1
Thanks for your reply.

I tried to load the daemon and it started successfully but I received the same error when connect to test database through

mysql -utest

Would u please explain me the purpose of "/var/lib/mysql/mysql.sock" file or any other suggestions.

Regards

Muhammad Ali

Posted: Fri Mar 07, 2003 3:44 am
by mohdali1
I download the binary distribution and install mysql again now it works fine.

Regards
Muhammad Ali