problem in mysql connecting

A

Anonymous

Guest
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
 
you have to load the daemon first.


/usr/local/mysql/bin/safe_mysqld &
 
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
 
I download the binary distribution and install mysql again now it works fine.

Regards
Muhammad Ali
 
Back
Top