MySQL--environment variables

1. The machine finds the bin directory of the MySQL installation directory

C:\Program Files\MySQL\MySQL Server 8.0\bin

 

 

2. Mine is a win10 system, the following are all operations on this basis, other systems are similar

  • Right-click this computer and click Properties

 

 

  • Click on Advanced System Settings on the left

 

 

  • Click on the environment variable below

 

 

  • Select the Path line, and then click Edit

 

 

  • Click New and paste the bin directory of the first step into it

 

 

  • In order to prevent it from not working, select the line you have created by Google, and then click the move up button on the right to move it to the top

 

 

  • After that, all the way to confirm, click OK on all the windows that just opened

3. Finally, use the login command of the MySQL service to confirm that the environment variables have been configured

 

Guess you like

Origin blog.csdn.net/huangge1199/article/details/106967746