Mysql run in the git-bash

winpty mysql -u root -p

If the get-bash can not start 'mysql' appears: Not found in PATH

We need to add to your mysql startup path environment variable

On the Windows desktop, right-click "  My Computer" icon and select "  Properties."

Next, from the appearance of the "  Select System Properties" menu, select "  Advanced" tab, then click the "  Environment Variables" button. 

In the "  Under System Variables", select "  Path", then click "  Edit" button. "Should appear  Editing System Variables" dialog box.

E.g,C:\Program Files\MySQL\MySQL Server 5.7\bin

For more details refer to the official documentation  https://dev.mysql.com/doc/mysql-windows-excerpt/5.7/en/mysql-installation-windows-path.html

Guess you like

Origin www.cnblogs.com/chentailin/p/11343890.html