MySQL8.0 安装教程
一、下载
1、官网地址
MySQL :: Download MySQL Community Server
2、选择安装包安装方式
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605233533857-1393464536.png)
3、选择安装版本
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605233552265-648248518.png)
4、开始下载
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605233614981-962848024.png)
5、下载成功
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234239016-315078847.png)
二、安装
1、双击安装包
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234239016-315078847.png)
2、选择安装类型
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234310524-37877588.png)
3、选择安装应用
注:这里只是本地使用,只用到了MySQL,如果有其他用处可自行安装。
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234329208-1635986889.png)
4、更改安装地址
最好安装到C盘以外的盘符,安装目录和数据目录一定不要在一个路径下,否则会报错。
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234346718-1064125315.png)
5、点击检查
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234402629-1554410275.png)
6、等待通过
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234417877-1784016937.png)
7、产品设置,默认下一步
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234431842-933840202.png)
8、端口信息可自定义
此处一般为默认,不修改。如果想更改可自行修改,事后记录信息。
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234452357-812492367.png)
9、认证方法
此处选择选项二,老版本兼容性。
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234513556-1590737329.png)
10、设置密码
注:默认账户为root
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234531753-634796193.png)
11、标准系统服务,默认下一步
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234545509-1525512465.png)
12、应用配置检查
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234604478-1337169528.png)
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234628137-1166936129.png)
13、产品配置,默认下一步
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234642824-743328886.png)
14、安装结束
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234658912-1318055605.png)
三、测试安装
1、在"开始"目录下,选择MySQL 8.0 Command Line Client
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234725820-1313954847.png)
2、输入MySQL密码,并输入简单的语句来验证
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234741800-1173157192.png)
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234757230-894343511.png)
![](https://img2022.cnblogs.com/blog/2301705/202206/2301705-20220605234812494-46559885.png)