Issue: Command line login mysql prompt ' MySQL ' is not an internal or external command. As shown in 1.
Figure 1
Cause: The MySQL Bin folder is not configured in the environment variable area because the command line login MySQL needs to call the Mysql.exe file under Bin.
Workaround: Configure the MySQL Bin folder in the environment variable.
Computer Right--->[property]--> left [Advanced system settings]--> Click [Advanced]--> click [Environment variable], add the file path of the MySQL bin after the value of path in the system variable, my is [C:\Program files ( x86) \mysql\mysql Server 5.5\bin; ] (do not forget to separate the path with a semicolon). Ok. As shown in 2.
Figure 2
Re-open a command line input: Mysql-uname-p, enter after the Enter, if the below let input password, then, entered the correct password can enter MySQL. 3 is shown
Figure 3