前面步骤完成后安装好MySQL,为MySQL配置环境变量。MySQL默认安装在C:\Program Files下。
1)新建MYSQL_HOME变量,并配置:C:\Program Files\MySQL\MySQL Server 5.6
MYSQL_HOME:C:\Program Files\MySQL\MySQL Server 5.6
2)编辑path系统变量,将%MYSQL_HOME%\bin添加到path变量后。配置path环境变量,也可不新建MYSQL_HOME变量,而是直接将MySQL安装目录下的bin配置到path变量下,即:C:\Program Files\MySQL\MySQL Server 5.6\bin
Path:%MYSQL_HOME%\bin
或Path:C:\Program Files\MySQL\MySQL Server 5.6\bin
原文地址:https://www.cnblogs.com/yj716716yj/p/8403570.html
时间: 2024-11-08 06:16:36