Home >Database >Mysql Tutorial >How to set mysql environment variables

How to set mysql environment variables

王林
王林Original
2020-10-15 11:55:3734452browse

How to set the environment variables of mysql: 1. Click [Computer], [System Properties], [Advanced System Settings], [Environment Variables]; 2. Edit the PATH variable and add the bin directory path; 3. , open the command prompt and test whether the setting is successful.

How to set mysql environment variables

Specific method:

(Recommended tutorial: mysql video tutorial)

First click on Computer--System Properties--Advanced System Settings--Environment Variables.

Then find the path in the system variable, click Edit, then copy the path of the bin directory under the mysql installation directory to the path, and click OK.

How to set mysql environment variables

Finally check whether the environment variable is set successfully.

Open the command prompt and directly enter mysql -uroot -proot123456 (Note: u is the abbreviation of user, which is the user; p is the abbreviation of password, which is the password; so you should write the password you set after p), The following results indicate that the configuration is successful and you can log in successfully in any directory.

How to set mysql environment variables

Related recommendations: mysql tutorial

The above is the detailed content of How to set mysql environment variables. 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