Can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock’ (38)
If your file my.cnf (usually in the /etc/mysql/ folder) is correctly configured with you can check if mysql is running with the following command: try changing your permission to mysql folder. If you are working locally, you can try: that solved it for me