设定mysql命令行环境

在windows命令行中,如果输入mysql后出现

‘mysql’ is not recognized as an internal or external command, operable program or batch file.

错误。那是因为没有为mysql设置命令行路径。