Mysql 8 installation tutorial

1. Download
1. Download address: official website https://www.mysql.com/

2. Download steps: Path: DOWNLOADS - Community - Find MySQL on Windows (Installer & Tools) 



After entering, click MySQL Install

Scroll down to find the download area

The first one is online online installation, which will download the installation package online;
The second one is offline installation, here we choose the second one and download it locally for installation;

After clicking Download

You need to log in with your ORACLE account here. If you don't have one, register one, and I won't go into details.

The three options correspond to the industry, position, and length of service, and choose according to your own situation.

Click to start the download. After the download is complete, there will be an installation file locally.

At this point, the download is over;


2. Installation
1. Double-click to start the installation
2. Next step
3. Select the installation type

4. Detect the required installation, you can download and install according to the url, click Check to check whether the installation is successful;
Here we directly next


5. Click Execute to start the installation

6.next

7.next

8. Default first, continue

9. Default, continue

10. Password verification method is very important

The first is strong password verification. MySQL recommends using the latest database and related clients. MySQL8 has changed the encryption plug-in , so if you choose the first method, it is very likely that your navicat and other clients cannot connect to mysql8.

It is recommended to choose the second one here (this part of the article is an update, if there are differences between the subsequent steps in the tutorial and the pictures, please follow the installation prompts to continue)

11. Set a password, you need to remember it, if necessary, please save it safely

12. Default, continue

13. Tick to continue

14.Execute execution

15. Click finish

16. mysql-router

mysql-router is the official lightweight middleware of mysql. Because it is used locally, it will not be configured for the time being.
17. Continue

18. Enter password

Click check, and Next can be clicked after success
19. Continue

20. End


3. Verification
(一)利用mysql命令行客户端
1.从开始菜单中打开刚刚安装的mysql命令行客户端

2.输入密码

3.输入show databases;回车


(二)利用mysql的workbench可视化工具
1.打开mysql的workbench,如果开始菜单找不到,可以win键+Q进行搜索

2.点击灰色区域

3.输入密码

4.在Query区直接输入命令,然后点闪电标志执行,直接出结果


(三)利用windows的cmd命令行
1.配置环境变量,如果安装的时候是默认路径,那么默认路径如图

2.输入mysql -h 127.0.0.1 -u root -p或者直接mysql -u root -p,然后输入密码,即可登陆

3.输入show databases;回车


(四)利用客户端工具连接,推荐Navicat

1.新建连接-mysql

2.双击进行连接

3.连接成功



至此,mysql 8安装并验证通过。

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325550427&siteId=291194637