mysql - Add System Environment Windows Variable using command line -


i'm doing unattended mysql installer, root password , all, goes fine!, i'm on final step. i'm adding system environment variable, in order add "path" path of mysql installed, i'm doing this:

setx path "c:\mysql\bin" /m 

and works, if test in command line can invoke mysql command line window.

but realized paths stored other programs stored "java" , other ones disappeared, , saved path of mysql.

obviously i'm doing wrong, because must store program paths.

when ran this:

setx path "c:\mysql\bin" /m 

your overwrote (i.e. clobbered) whatever things had in previous path environment variable. instead, append mysql path use following:

set path=%path%;c:\mysql\bin 

however, update path using windows gui interface. can open dialog contains various environment variables. there, see literal value path , should straightforward see how append mysql end. checkout following server fault question if need more doing gui:

https://serverfault.com/questions/465924/windows-how-do-i-add-a-program-to-the-systems-path-environmental-variable-from


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -