20221018:由于专业课程需求,现已重制MySQL安装教程,链接:
下载地址
官网下载时,请点击较大的文件下载
![](https://blog.llyth.cn/wp-content/uploads/2021/06/image.png)
安装
(未出现的界面点击下一步即可)
![](https://blog.llyth.cn/wp-content/uploads/2021/06/image-1.png)
![](https://blog.llyth.cn/wp-content/uploads/2021/06/image-2.png)
![](https://blog.llyth.cn/wp-content/uploads/2021/06/image-3.png)
![](https://blog.llyth.cn/wp-content/uploads/2021/06/image-4.png)
![](https://blog.llyth.cn/wp-content/uploads/2021/06/image-5.png)
注意:此处设置的密码为root密码,需要自己记住
![](https://blog.llyth.cn/wp-content/uploads/2021/06/image-6.png)
输入密码测试可用性
![](https://blog.llyth.cn/wp-content/uploads/2021/06/image-7.png)
配置环境变量
开始菜单中,点击
![](https://blog.llyth.cn/wp-content/uploads/2021/06/image-8.png)
可以看到安装路径
![](https://blog.llyth.cn/wp-content/uploads/2021/06/image-9.png)
MYSQL_HOME
系统/用户变量处点击新建,新建一个变量
![](https://blog.llyth.cn/wp-content/uploads/2021/06/image-10.png)
变量名:MYSQL_HOME
变量值:C:\Program Files\MySQL\MySQL Server 8.0(填写自己的安装路径)
打开Path
,添加一条:%MYSQL_HOME%\bin
重启电脑(不然可能无法从cmd调出mysql!)
检查安装
win+r 打开cmd,输入:mysql -u root -p
,输入密码,看到如下界面,恭喜你!
![](https://blog.llyth.cn/wp-content/uploads/2021/06/image-11.png)