connecting to mysql from cygwin

前端 未结 14 1769
时光说笑
时光说笑 2020-12-07 22:08

I can successfully connect to MySQL from a DOS prompt, but when I try to connect from cygwin, it just hangs.

$/cygdrive/c/Program\\ Files/MySQL/MySQL\\ Serve         


        
14条回答
  •  醉话见心
    2020-12-07 22:33

    Run bash from the cmd.exe executable and then mysql will work inside bash.

    1. Create a shortcut for cmd.exe on your desktop.
    2. Open up the properties for the shortcut and change the startup directory to the cygwin bin directory (usually C:\cygwin\bin).
    3. Add "/c bash.exe" to the end of the command in the target parameter.

    This will run bash under the windows cmd.exe environment and when you attempt to run mysql it will execute as you would expect. This is working under windows 7 but has not been tested in any other version.

提交回复
热议问题