
This error message is basically telling you that the application is not able to locate the socket file needed to establish a MySQL connection.Īnd as you well know the socket file is used by the operating system to enable interface services such as MySQL or PHP to interact and communicate among each other.įor some people this appear message may occur when trying to restart MySQL and run the:Ĭan't connect to local MySQL server through socket '/var/mysql/mysql.sock' (38) So what’s causing the can’t connect to local mysql server through socket error message? What Is Can’t Connect to Local MySQL Server Through Socket Error? Conclusion on Can’t Connect to Local MySQL Server Through Socket.Solution #5: Change MySQL Folder Permission.Solution #4: Verify mysql.sock Location.Solution #1: Check If MySQL Service is Runnning.How to Fix Can’t Connect to Local MySQL Server Through Socket Error.

What Is Can’t Connect to Local MySQL Server Through Socket Error?.
