Home >Database >Mysql Tutorial >How to solve the problem that mysql is not an internal command?

How to solve the problem that mysql is not an internal command?

青灯夜游
青灯夜游Original
2022-06-20 12:48:2512018browse

Solution: 1. Right-click the "Computer" icon and select "Properties" in the menu that opens; 2. In the system interface, click "Advanced System Settings"; 3. In the "System Properties" pop-up window, click "Environment Variables"; 4. In the "System Variables" area of ​​the "Environment Variables" pop-up window, select "Path" and click "Edit"; 5. In the "Edit Environment Variables" window that opens, fill in Enter the bin directory path in the Mysql installation directory and click "OK"; 6. Restart the cmd window.

How to solve the problem that mysql is not an internal command?

The operating environment of this tutorial: windows10 system, mysql8 version, Dell G3 computer.

Sometimes I want to log in to the mysql server from the cmd window, but an error is reported, indicating that mysql is not an internal or external command

How to solve the problem that mysql is not an internal command?

Solution: Open the computer's environment variables, select system variables, open Path, and add the bin directory path of mysql to it

Steps:

1. Right-click "Computer" ” icon, select “Properties” in the menu that opens

How to solve the problem that mysql is not an internal command?

2. In the system interface, click “Advanced System Settings”

How to solve the problem that mysql is not an internal command?

3. In the "System Properties" pop-up window, click the "Environment Variables" button

How to solve the problem that mysql is not an internal command?

4. In the "Environment Variables" pop-up window, click "System Variables" " area, select "Path" and click "Edit"

How to solve the problem that mysql is not an internal command?

5. In the "Edit Environment Variables" window that opens, fill in the bin directory path in the Mysql installation directory. , click "OK".

How to solve the problem that mysql is not an internal command?

#6. Restart the cmd window.

Executemysql -u root -p

How to solve the problem that mysql is not an internal command?

ok, you can log in!

[Related recommendations: mysql video tutorial]

The above is the detailed content of How to solve the problem that mysql is not an internal command?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn