My XAMPP runs on my desktop and can connect to the MySQL server via phpMyAdmin. However, when I try to connect through Cygwin:
Error: cannot connect to local MySQL server through socket '/var/run/mysql.sock' (2)
I tried to connect to MySQL on one computer, my local developer server and the remote server, all failed.
source share