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 127.0.0.1 -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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: