Git Bash mysql blank
I had the same problem with git bash and mysql, and solution to this is to use
winpty mysql -u root
I guess this is because you are running mysql for windows, using unix environment, and as far as I know winpty should be used for running windows applications in the git bash (not 100% sure, maybe someone can confirm).
I faced the same problem before.... Just use the simple cammand:
winpty mysql -u root -p
Then press enter and the terminal asks for the password, enter your password and then it connects, the bash to the mysql server.
Create a shortcut in Windows Desktop with this destination:
"C:\Program Files\Git\usr\bin\mintty.exe" -e "C:\Program Files\Git\usr\bin\winpty.exe" "C:\Program Files (x86)\MariaDB 10.1\bin\mysql.exe" -uroot -p
A Quick fix for other users facing that issue too:
You can create a .bash_profile
to config git bash, to always use winpty
by default :
cd ~ && echo "alias mysql=\"winpty mysql\"" > .bash_profile
if you already have a .bash_profile
in your user folder use this command instead:
cd ~ && echo "alias mysql=\"winpty mysql\"" >> .bash_profile