problem in mysql connecting

Installation and configuration iussues

Moderators: macek, egami, gesf

mohdali1
New php-forum User
New php-forum User
Posts: 10
Joined: Mon Mar 03, 2003 9:32 pm

problem in mysql connecting

Postby mohdali1 » Mon Mar 03, 2003 10:06 pm

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

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Postby Redcircle » Tue Mar 04, 2003 11:44 am

you have to load the daemon first.


/usr/local/mysql/bin/safe_mysqld &

mohdali1
New php-forum User
New php-forum User
Posts: 10
Joined: Mon Mar 03, 2003 9:32 pm

Postby mohdali1 » Wed Mar 05, 2003 9:41 pm

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

mohdali1
New php-forum User
New php-forum User
Posts: 10
Joined: Mon Mar 03, 2003 9:32 pm

Postby mohdali1 » Fri Mar 07, 2003 3:44 am

I download the binary distribution and install mysql again now it works fine.

Regards
Muhammad Ali


Return to “MySQL Installation”

Who is online

Users browsing this forum: No registered users and 2 guests