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
mysql connecting problem
-
- Cadet
- Posts: 2
- Joined: Wed Mar 05, 2003 6:04 pm
- Contact:
aoa,
mohdali2
i had the same error when i installed mysql recently. then i gave all those commands like
mysqld start
mysqld start &
and one or more type that was given in the howto
but that did nothing for me .......dont know why because its the standard way to do it .
then what i did in the end was to start mysqld from serviceconfigurator and then every thing worked fine ..i got my connection and was abe to connect to database through mycc.
that was all how it went i still dont know why
mysqld start didnt worked
mohdali2
i had the same error when i installed mysql recently. then i gave all those commands like
mysqld start
mysqld start &
and one or more type that was given in the howto
but that did nothing for me .......dont know why because its the standard way to do it .
then what i did in the end was to start mysqld from serviceconfigurator and then every thing worked fine ..i got my connection and was abe to connect to database through mycc.
that was all how it went i still dont know why
mysqld start didnt worked
-
- Site Admin
- Posts: 285
- Joined: Wed Aug 07, 2002 8:00 pm
- Location: Karachi
- Contact:
gh4z4nf4r,
It's usually recommended to use the init script for starting and stopping daemons instead of doing that directly. On redhat:
will restart the service in an orderly fashion
It's usually recommended to use the init script for starting and stopping daemons instead of doing that directly. On redhat:
Code: Select all
su -
service mysql restart