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 "
Next, from the appearance of the "
In the " Under System Variables", select "
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