How can I get the mysql installation path up to bin folder using command prompt in windows.Is there any command to get the location of mysql installation path?
If the MySQL programs are installed in /usr/local/mysql/bin and the user wishes to make it easy to invoke these programs, the value of the PATH environment variable can be set to include that directory. Before trying to add MySQL to Windows path, ensure that MySQL has been installed properly.
(if I get your question correctly) Like you wold add any other directory to path
set PATH=%PATH%;C:\DirectoryToAdd\ToPath
It doesnt metter if you add %PATH% on, beginig or on the end, but you must add it, otherwise your path will only be your new directory.
Find mySql installation directory ( for example C:\Program Files\MySQL\MySQL Server 5.6\bin) and then type the comand above set PATH=%PATH%;C:\Program Files\MySQL\MySQL Server 5.6\bin
tips:
in cmd use PATH to see what is your path (I think every body knows this, but it cant hurt) And see something more about PATH command
Your mySql servce must be turned on to execute commands.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With