Git Bash 2.5无法连接到mysql

Fer*_*res 3 mysql windows git git-bash

我有一个非常恼人的问题,通过Git Bash 2.5连接到MySQL(通过localhost上的Windows).通过CMD和Mysysgit一切正常.

$ mysql -u root -proot Warning: Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7 Server version: 5.6.26-log MySQL Community Server (GPL) Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>

但是,看看这个.用于Windows的Git SCM仍然卡住,永远闪烁光标.你们见过这个吗?有人可以帮帮我吗?

$ mysql -u root -proot Warning: Using a password on the command line interface can be insecure.

提前致谢.

Par*_*mar 7

解决方案在这里提供: Git Bash mysql空白

winpty在任何窗口命令之前使用它并且它可以工作.

winpty mysql -u root -proot
Run Code Online (Sandbox Code Playgroud)