Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
If your file my.cnf (usually in the /etc/mysql/ folder) is correctly configured with
socket=/var/lib/mysql/mysql.sock you can check if mysql is running with the following command:
mysqladmin -u root -p status try changing your permission to mysql folder. If you are working locally, you can try: