Home  >  Article  >  Database  >  How does mysq configure the environment variables of win10?

How does mysq configure the environment variables of win10?

醉折花枝作酒筹
醉折花枝作酒筹forward
2021-06-15 09:33:322813browse

This article will give you a detailed introduction to the method of configuring win10 environment variables in mysq. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

How does mysq configure the environment variables of win10?

1. After installing mysql, you need to configure environment variables (win 10)

Select "My Computer", right-click and select "Properties" ->Advanced-> System variables in environment variables, set the following corresponding values ​​for the two system variables MYSQL_HOME and Path (setting principle: If there is a corresponding variable, edit the variable directly, be careful not to add only Delete; if the variable does not exist, create it and then edit it.)

Since there is no environment variable here, create a new environment variable MYSQL_HOME

MYSQL_HOME=D:\App\Mysql (Choose your own installation directory for the directory)

(Note here that if you are adding variable content to an existing variable, Before entering the variable content, you must first enter the semicolon in the English input method)

2. After creating the new environment variable, find Path in the environment variable, click Edit, and Click New in the pop-up box and create a new environment variable

Path=%MYSQL_HOME%\bin (Add %MYSQL_HOME%\bin under the Path path)

3. Enter %MYSQL_HOME%\bin, then click OK, remember there must be 3 OKs

If you click Edit Path, the opening will look like this

You need to add ;%MYSQL_HOME%\bin at the end of the variable value (MYSQL_HOME%\bin has a semicolon in English in front of it)

Configure after editing is completed After completing the

configuration, we can enter

 mysql -u root -p

in cmd and then enter the password

Related recommendations: "mysql tutorial"

The above is the detailed content of How does mysq configure the environment variables of win10?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete