从cygwin连接到mysql [英] connecting to mysql from cygwin

查看:327
本文介绍了从cygwin连接到mysql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以从DOS提示符成功连接到MySQL,但是当我尝试从cygwin连接时,它只是挂起。

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\ Server\ 5.1/bin/mysql -u root -p

有什么问题?

推荐答案

假设你有一个Windows本机的Windows版本,在 DOS (命令提示符)窗口和 bash 之间的终端仿真不兼容。 mysql 的提示未显示。

Assuming that you have a native Windows build of MySQL, there is a terminal emulation incompatibility between DOS (command prompt) windows and bash. The prompt for mysql isn't showing up.

要确认这一点,请键入命令并返回 - 可能工作,但是提示和命令的回声(您输入的内容)正在丢失。

To confirm this, type a command and return - it will probably work, but the prompt and the echo of the command (what you're typing) is getting lost.

可能有一个解决方法在 CYGWIN 系统属性或 bash ,但我从来没有花时间处理这个。

There may be a workaround in either the CYGWIN sytem properties or in bash, but I've never taken the time to work this one out.

这篇关于从cygwin连接到mysql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆