MySQL 8.0 installation tutorial

Before version 5.7 has been in use, even a sudden jump 8.0

OCD can only be resolved by force wave

MySQL 5.5 -> MySQL 5
MySQL 5.6 -> MySQL 6
MySQL 5.7 -> MySQL 7
MySQL 8.0 -> MySQL 8

 

A. Installation Tutorial

Download: https://www.mysql.com/downloads/

 

step 1

 

step 2

 

step 3

 

 

 

step 4

 

 

 

step 5

Double-click to download and install

 

step 6

 

 

step 7 

Select the type of installation: the developer defaults (Developer Default)

 

 

step 8

Check the Developer Default Related Products

 

 

step 9

Install mysql needed c ++ environment

 

 

step 10

 

 

step 11

 

 

step 12

 

 

step 13

 

 

step 14

[HA] settings

Default can be: independent MySQL server / MySQL replication Classic

The second is: InnoDB cluster , select to create or expand based on MySQL Group Replication of InnoDB cluster solutions, we can see

The official installation documentation  or  InnoDB clusters Introduction

 

 

step 15

Next to Default

TCP / IP : You can enable TCP / IP network here, otherwise only allows the local host connection

Port: (for classic MySQL protocol)  

Port Protocol the X-:  (for MySQL as document storage)

如果端口号已在使用中,您将看到默认值旁边的信息图标,并且在您提供新端口号之前, Next将被禁用。

Open ... :是否打开防火墙端口以进行网络访问

 

 

 

 

step 16

认证方法:仅在MySQL 8.0.4或更高版本的安装或升级过程中的步骤是可见的

默认官方推荐:第一种

1.使用强密码加密进行身份验证(推荐)

 MySQL 8.0支持基于改进的,更强大的基于SHA256的密码方法的新身份验证。建议所有新的MySQL服务器安装都使用此方法。

2.使用传统身份验证方法(保留MySQL 5.x兼容性)

 

 

 

step 17

 

账户和角色

设置root密码即可,用户账号以后可以创建

 

step 18

 

 

step 19

 

 

step 20

 

step 21

 

step 22

输入你前面设置的 root 密码 校验

 

 

step 23

如下即表示成功 下一步即可

 

step 24

 

step 25

 

step 26

1.直接电脑左下角搜索下面即可打开命令行

 

 

2.如果想DOS命令窗口登录,配置环境变量即可

Path 追加一行    %MYSQL_HOME%\bin

表示环境变量配置成功

3.图形界面工具打开,或者下载Sqlyog 或 Navicat 工具

发布了29 篇原创文章 · 获赞 8 · 访问量 7023

Guess you like

Origin blog.csdn.net/weixin_42032199/article/details/96652644