Users working with MySQL can run into the error ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock (2)’ when logging into the MySQL interface. This problem usually arises if MySQL can’t access the mysqld.sock socket file.
Concluzion: Fix Error Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) – [vid_tags]