Skip to Content

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

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


Synopsis: This article describes steps to resolve the 'Can’t connect to local MySQL server through socket '3306'' error in Ezeelogin by editing 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. Edit the ez.conf file:

  • Open the ez.conf file with a text editor:

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

Step 2. Correct the db_port variable:

  • 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.