When i am trying to login in mysql shell using
mysql -u root -p
i am getting the
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Please help me out what is wrong with mysql
I am able to login using mysql --host=127.0.0.1 frontend
Update /etc/hosts
127.0.0.1 localhost
127.0.1.1 shweta-desktop
127.0.0.1 webfaction
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters