Home > Database > Mysql Tutorial > How to configure environment variables in MySQL?

How to configure environment variables in MySQL?

青灯夜游
Release: 2019-05-23 18:56:46
Original
85417 people have browsed it

After installing MySQL, if you do not configure environment variables, you have to go to the mysql/bin directory every time to operate. The following article will introduce to you how to configure environment variables. I hope it will be helpful to you. .

How to configure environment variables in MySQL?

MySQL steps to configure environment variables:

1. Right-click [My Computer] and select [Properties]

How to configure environment variables in MySQL?

2. Select [Advanced System Settings] on the left

How to configure environment variables in MySQL?

3. Click [Environment Variables] in the lower right corner of the pop-up window 】

How to configure environment variables in MySQL?

4. Click New, enter mysql_home as the variable name in the pop-up window, and enter your mysql installation path as the variable value, as shown in the figure:

How to configure environment variables in MySQL?

How to configure environment variables in MySQL?

5. Edit the Path system variable

In the system variables, find the Path variable, click the "Edit" button, we will;%MYSQL_HOME%\bin Add to the path variable (usually placed at the end)

Note: If there are other configurations in front, be sure to add an English semicolon (half-width) in front.

How to configure environment variables in MySQL?

How to configure environment variables in MySQL?

6. Then open cmd and you can enter commands directly at any location without locating to the bin directory

Because the bin directory has been added to the environment variable, the system will search for it by itself. At this time, we can open the mysql command prompt at any location, such as the root directory of drive D, by typing: mysql -u root -p.

How to configure environment variables in MySQL?

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template