Cygwin Connect to MySQL

Can't connect to local MySQL server through socket '/var/run/mysql.sock'

Try to find MySQL location with Cygwin

which mysql

It's not mysql installed on my Windows. It's mysql client installed by Cygwin Setup.exe, let you can use mysql command on Cygwin.

Using Cygwin connect to MySQL

Specify the host in command, you can connect to MySQL server which running on Windows

mysql -u root -p -h


Popular posts from this blog