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
/usr/bin/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 127.0.0.1 in command, you can connect to MySQL server which running on Windows

mysql -u root -p -h 127.0.0.1

Comments

Popular posts from this blog

Reduce TIME_WAIT Socket Connections