Skip to Content

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

I get the error ’Can’t connect to local MySQL server through socket ’3306 ’ in ezsh.log

Edit the file "/usr/local/etc/ezlogin/ez.conf"

vi /usr/local/etc/ezlogin/ez.conf

and correct the variable

  db_port /var/lib/mysql/mysql.sock