
Have you ever faced an error 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock', while trying to log in to MySQL as any user?
You can login to your MySQL via the following terminal command.
mysql -u root -p
or
mysql -u root -pPassword
Its recommended, not to use passwords in terminal command, due to privacy reasons.
Verify that, your MySQL is running. If not, start service by typing following command in your Linux terminal.
sudo service mysql start
or