Hi, Amol
I have executed all the command give by u . but still when i connect the error message is..
ERROR 2002: Can't connect to local MySQL Server through socket /var/lib/mysql/mysql.sock (2)
regard's
pavan
--- Amol Hatwar amol@hatwar.org wrote:
I have done Full installation of Redhat
Enterprise,
still i am not able to work on mysql. I am not
able to
find mysqld file.
Can any one pls. help.
First off, check if mysql is installed. You may have to do a: rpm -qa | grep mysql
Seconds, if mysql is installed, you can get the rpm information for it. I don't remember the exact command as of now, but you can look for it. OR
You could do a: find /usr -iname mysqld
To see where your mysqld binary is. Also remember, running mysqld direct is dangerous. Always use the mysqld_safe script.
Regards,
ah
________________________________________________________________________ Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/
ERROR 2002: Can't connect to local MySQL Server through socket /var/lib/mysql/mysql.sock (2)
Hi, It seems you have not started the mysql daemon. login as root and issue the following command:
#service mysqld start
hope this helps. Regards, Shreyas Phadnis
Hi, Amol
I have executed all the command give by u . but still when i connect the error message is..
ERROR 2002: Can't connect to local MySQL Server through socket /var/lib/mysql/mysql.sock (2)
That file is a socket file, through which the MySQL client connects with the server. If the server is starting alright, the file exists somewhere on the file system. Somehow, your client cant seem to find it because it is not in the location it expects the file to be.
To remedy this, see my.cnf (generally found in /etc) and see where the socket file is being made. Change it to the value the client expects the file to be at.
If the location and filename is right, you might have a permissions problem.
Regards,
ah