MySQL8.0 installation and configuration tutorial [super detailed illustration]

Table of contents

1. MySQL download and installation

2. MySQL installation

3. MySQL connection test

4. Configure environment variables


1. MySQL download and installation

MySQL download address

mysql-installer-web-community-8.0.26.0.msi Download program size: 2.4M; installation requires networking to install components;

mysql-installer-community-8.0.26.0.msi Download program size: 450.7M; you can install it offline during installation; [recommend this]

2. MySQL installation

 

 

 

First option: Use strong password encryption for authentication (upgraded)

Second option: Use traditional authentication method (preserves MySQL 5.x compatibility)

If we choose strong password encryption for authentication, although MySQL uses strong password encryption, our graphical management software (SQLyog, Navicat, etc.) does not use strong password encryption, which will cause SQLyog to be unable to access our MySQL, so Here we want to choose the traditional encryption method.

 

 

 

3. MySQL connection test

Open [Start] and you will see two programs. Open any one and enter the [password] set during installation.

Then enter exit to exit MySQL

 4. Configure environment variables

Right-click [My Computer] --> click [Properties] --> click [Advanced System Settings] --> click [Environment Variables]

 

 

Press window+R

Enter cmd to open a black window

Enter mysql -u root -p

enter password】

If the following screen appears, the environment variables are configured successfully;

Guess you like

Origin blog.csdn.net/m0_73442728/article/details/131359479