S
S
Sergey Burduzha2017-05-10 07:45:23
cmd/bat
Sergey Burduzha, 2017-05-10 07:45:23

How to add a custom environment variable?

You need to work with mysql from the console, for this, you should register the path to the mysql.exe files in the environment variable. For some reason, system variables cannot be changed, but how can I add the path to the user variable? Although I already did this, but for some reason mysql does not start from the console.
856380e9635749b9aa21f98943fa01f7.PNG
System variables are inactive only on a laptop, but on a desktop computer, everything was installed and everything works fine.
How can I solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2017-05-10
@yellowmew

1. try to run the control panel applet, where the path variable is edited "as administrator"
the name of the applet executable file is sysdm.cpl
You can call the context menu with "as administrator" either by creating a desktop shortcut with the name of the applet or
(in theory, from 7-ki, but the search does not always work adequately) find it in the search in the start menu and the same way - with the right button.
2. Play around with the UAC setting (of course, not in the direction of a complete shutdown, but just changes)
3. try to end explorer in the task manager and run it with administrative privileges. This is a bad way, but it also works. 4. use your user variable %mysql%\mysql.exe
in scripts and executables
I have not encountered such a problem (since I rarely edit the path at all), but as far as I understand, the problem is caused by the fact that some software sets this variable through the registry and somehow "corrects" the access security settings to the specified Anton key.
Perhaps comparing the settings on a laptop and a desktop computer will help you figure it out (Although I'm not sure how experienced you are in editing the registry. It's better not to edit anything superfluous there)
This is an extreme option to climb with your hands, before that, try the previous tips and be sure to write down what helped you :D

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question