Solve the problem that mysql is not an internal command

Solve the problem that mysql is not an internal command

The problem description is shown in the figure below: The
Insert picture description heresolution, 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
Insert picture description here2. Open environment variables,
select My Computer on the desktop, right-click and select properties, select advanced system settings, click environment variables
Insert picture description here3. 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.
Insert picture description here
4. Reopen the terminal and enter the command mysql -u root -p.
Insert picture description here

Guess you like

Origin blog.csdn.net/cly_32/article/details/112155558