在命令提示符下获取MySQL路径 [英] Getting MySQL path in command prompt
问题描述
如何在Windows中使用命令提示符将mysql安装路径升级到bin文件夹.是否有任何命令可以获取mysql安装路径的位置?
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 I get your question correctly) Like you wold add any other directory to path
set PATH =%PATH%; C:\ DirectoryToAdd \ ToPath
set PATH=%PATH%;C:\DirectoryToAdd\ToPath
如果在开始,结尾或末尾添加%PATH%,则不会发生变化,但是必须添加它,否则您的路径只会是您的新目录.
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.
找到mySql安装目录(例如C:\ Program Files \ MySQL \ MySQL Server 5.6 \ bin),然后在上方键入comand 设置PATH =%PATH%; C:\ Program Files \ MySQL \ MySQL Server 5.6 \ bin
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
提示:
-
cmd中的
-
使用PATH查看您的路径(我认为每个人都知道这条路径,但是不会造成伤害),并进一步了解必须打开mySql服务才能执行命令.
Your mySql servce must be turned on to execute commands.
这篇关于在命令提示符下获取MySQL路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!