Solve the problem that mysql is not an internal command
The problem description is shown in the figure below: The
solution, add environment variables to mysql, the specific steps are as follows:
1. Find the location of the bin where mysql is installed, as shown in the figure
2. Open environment variables,
select My Computer on the desktop, right-click and select properties, select advanced system settings, click environment variables
3. Find the path in the environment variable, double-click or click edit, in the variable Enter the semicolon ";" in English format at the end of the value to emphasize that it is the semicolon in English. Copy the bin directory in 1 and paste it into the environment variable to save.
4. Reopen the terminal and enter the command mysql -u root -p.