Nanny-level installation of MySQL and configuration of environment variables

1. Download MySQL

1. Find the official download address of MySQL

https://www.mysql.com/cn/downloads/
Insert image description here

2. After opening the page, scroll to the bottom and find the download location.

(点击MySQL Community (GPL) Downloads »
Insert image description here

3. Find the version you want to download, I am windows so choose MySQL Installer for Windows

Insert image description here

4. Click to enter and you can see the latest version.

Insert image description here

Click Download to download!
If you want to download other versions, click Archives

Insert image description here
Insert image description here

You can choose the version you want to download.

5. After clicking Download, you will enter the page below. You can log in or register an account. Of course, if you want it to be the easiest, just click No thanks, just start my download. and you will be able to download without logging in!

Insert image description here

(At this time, please note that you can log in to the accelerator when downloading, otherwise it will be a bit slow)

2. Install MySQL

1. Double-click the downloaded .msi installation package and click Run

2. Select an installation type

“Developer Default” is the developer default
“Server only” is installed only as a server
“Client only” is installed only as a client a>
“Full” is a complete installation
“Custom” is a custom installation
Insert image description here

This is to install some products and functions. I directly install them by default as a developer.

3. Install the products and features you just selected

Insert image description here

4. After the installation is complete, next

Insert image description here

5. Click next again

The default port of the database here is 3306. Just select the default developer computer for the setting type here.
Insert image description here

6. Click next again

Insert image description here

7. Click next to enter the password

Insert image description here

8. Click next again

Insert image description here

9. Just go all the way to next

Insert image description here
Insert image description here
Insert image description here

10. Enter the password you just entered, and then click check. If the password passes, you can proceed to the next step.

Insert image description here
Insert image description here
Then proceed all the way to next to complete the installation package installation.

11. After the installation is complete, search for MySQL 8.0 Command Line Client on the start interface and click to open it.

Insert image description here

12. Enter the password you just set

Insert image description here

13. When the following interface appears, it means the installation has been successful.

Insert image description here

3. Configure environment variables

1. Open the folder and find your installation directory

(I installed it by default, so it is under the C drive. Generally, I just find the bin file under the MySQL Server folder, and then copy the directory)

Insert image description here

2. Copy directory

Insert image description here

3. Open system environment variables

Right click on This PC (My Computer) and click Properties
Insert image description here

4. Find "Advanced System Settings" and click "Advanced" environment variables

Insert image description here
Insert image description here

5. Find the path in "System Variables", click to select the path and click Edit

Insert image description here

6. Copy the path you just copied into it

Insert image description here

7. Then verify whether the environment variables are configured successfully. Windows + r and enter cmd to open the windows command window.

Insert image description here

8. Enter mysql -u root -p, press Enter and then enter the password. If the following interface appears, the system environment variables are configured successfully.

Insert image description here

I installed it by default. You can see that MySQL Workbench 8.0 CE is also installed by default. This software has a visual graphical interface with similar functions to navicat and can be operated by yourself.
Insert image description here

Guess you like

Origin blog.csdn.net/qq_43651168/article/details/131060327