Skip to Content

Can’t connect to local MySQL server through socket ’3306 ’ in ezsh.log

How to solve Error: 'Can't connect to local MySQL server through socket '3306 ' found in ezsh.log


Overview: This article describes steps to resolve the 'Can’t connect to local MySQL server through socket '3306'' error in Ezeelogin by editing the Ezeelogin configuration file to correct the socket path.


If you encounter the error 'Can’t connect to local MySQL server through socket '3306'' in ezsh.log, follow these steps:

Step 1: Open the ez.conf file with a text editor:

root@gateway:~# nano /usr/local/etc/ezlogin/ez.conf

Step 2: Find and update the db_port variable to use the correct socket file path and save it.

db_port /var/lib/mysql/mysql.sock

By following these steps, you will correct the MySQL socket path in the Ezeelogin configuration, resolving the connection error.


Related Articles:

Error log and configuration files.