Git Bash 2.5 ne peut pas se connecter à mysql

J’ai un problème vraiment gênant pour me connecter à MySQL avec Git Bash 2.5 (via Windows sur localhost). Tout fonctionne bien à travers CMD et 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>

Mais regardez ça. Git SCM pour les fenêtres toujours bloquées, clignotant le curseur pour toujours. Vous avez vu ça les gars? Est-ce que quelqu’un peut m’aider?

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

Merci d’avance.

la solution est fournie ici: Git Bash mysql blank

utilisez ce winpty avant toute commande de fenêtre et cela fonctionne.

 winpty mysql -u root -proot 

Le numéro 242 souligne:

c’est un problème connu (voir git-for-windows/build-extra/installer ):

Certains programmes de console interagissent correctement avec MinTTY uniquement lorsqu’ils sont appelés via winpty (par exemple, la console Python doit être démarrée en tant que python Winpty au lieu de Python).

Si vous n’aimez pas cela, n’hésitez pas à choisir l’option d’installation pour ne pas utiliser MinTTY.

Notez également que Git pour Windows n’est pas votre “Linux sous Windows”. Il supporte vraiment Git sur Windows et pas nécessairement mysql.

Utiliser mysql dans un conteneur nkratzke/EasyMySQL (comme nkratzke/EasyMySQL ) serait plus facile et fournirait un environnement Linux plus facile à gérer.