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).