Error 2002(HYooo): Cant connect to local MySQL server problem

When you feel that the username and password given was right But you are getting problem  for MySql like this:

gowthamraam@graamgaloom ~ $ mysql -uroot -p123456
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

you can try a simple remedy which worked for me  just give the following given command in your terminal

gowthamraam@graamgaloom ~ $ mysql -h -uroot -p123456 test

In the above command the

-h tells the host

-u is username

-p is password and

test is database

Thank you for reading



About pacesettergraam

A good and realistic person

Posted on February 5, 2013, in Uncategorized. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: