Error while after giving mysql password on linux mint

Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2).

I went to the stackoverflow and read the issue but unable to understand what it is being said.
Any one please explain me how to fix it in easy steps .Before this error i had been able to use Mysql database comfortably.

file:///home/areeb/Downloads/Screenshot%20from%202017-07-30%2001-28-57.png

Have you tried

mysql -h 127.0.0.1 -P 3306 -u root -p <database>

Also (to see if it's running):
telnet 127.0.0.1 3306

from
https://stackoverflow.com/questions/11657829/error-2002-hy000-cant-connect-to-local-mysql-server-through-socket-var-run

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.