hi Nikhil

This error comes when mysql service is not getting started and that happens
coz the my.cnf settings is not proper according to ur system.
u can do either for creating socket ....
mysql --socket=/var/lib/mysql/mysql.sock at the command prompt

or

[mysqld]
datadir=/usr/local/mysql/data
socket=/var/lib/mysql/mysql.sock

[mysql.server]
user=mysql
basedir=/usr/local/mysql


[client]
socket=/var/lib/mysql/mysql.sock




On Feb 12, 2008 8:28 PM, nikhil bharadwaj <[EMAIL PROTECTED]>
wrote:

>   hi all,
>
> I am using Fedora 7. I am unable to start my MySQL database.
>
> whenever i try to login i get the following error:
>
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock' (2)
>
> i try to enter using the given command:
> mysql -u root -p
>
> how should i proceed??
>
> can anyone throw some light on it.
>
> Regards,
>
> nikhil
>  
>

Reply via email to