MySQL installation----the most detailed tutorial (test wooden man)

Super detailed installation tutorial + operation tutorial

Table of contents

1. Download MySQL:

2. Install MySQL:

3. Verify that MySQL is installed successfully:

Fourth, configure environment variables:

Five, MySQL operation


1. Download MySQL:

Installation address: https://dev.mysql.com/downloads/windows/installer/

MySQL5.6 download address: https://dev.mysql.com/get/Downloads/MySQLInstaller/mysql-installer-community-5.6.45.0.msi

What version do you need to download?

Author: juanerdaydayup
Link: https://www.jianshu.com/p/714f77499a31
Source: Jianshu
The copyright belongs to the author. For commercial reprint, please contact the author for authorization, for non-commercial reprint, please indicate the source.

 

Note: Points to note before installation

  • The official website of mysq1 has two installation forms: .zip and .msi;
  • zip is a compressed package, which is directly decompressed and used, and you need to configure various things yourself; msi is an installation package, and the system will help us install it directly;
  • It is recommended to use the msi installation method;

1. Select the version you want to install and click Download

        This article selects version 8.0.31

2. Click Download:

3. Click to download the installation package, click to open after the download is complete

2. Install MySQL:

  • "Developer Default" is the developer default
  • "Server only" installs as a server only
  • "Client only" is installed as a client only
  • "Full" is a full installation
  • "Custom" is a custom installation

1. After the following interface appears, select "Custom", and click "Next".

2. After the following interface appears, we perform the following operations.

Choose which products and features to install

Click "MySQL Servers", "MySQL Servers", "MySQL Servers 8.0.31", "MySQL Servers 5.7.31 -64" in turn, and then click the green arrow to migrate the selected version to the check box on the right.

4. Select the installation path:

Note: Although it is also possible to install it on the C drive, I personally recommend not to install it on the C drive. I installed it on the E drive

5. Click "Next" after changing the path

 6. Enter the following interface and click Execute

7. Select the installation type

Personal Study Study Study: "Development Computer"

Development Computer is suitable for personal development and learning

Server Computer is mainly used for things like FTP, email, web server, etc.

Dedicated Computer is only used as MySQL server

8. After choosing, go directly to the next step

9. Change the port, there is no prompt to click next

 

 10. Continue to the next step:

 11. Here you need to set the MySQL password, click "Next" directly after setting

 12. Continue to the next step:

13. Agree to update server file permissions

 14. Click "Execute" here to install automatically

 

 15. After the installation is complete, click "Finish":

 16. Continue to click Next:

17. Next step:

 

Here we are done with the installation!

3. Verify that MySQL is installed successfully:

 1. Search mysql on the interface to open:

 2. After opening, enter the password we entered when we just installed MySQL;

After typing, press "Enter"

Verification successful!

Fourth, configure environment variables:

1. Find the installation path where we installed MySQL, enter the bin directory, and copy the path:

 2. Go to the desktop to find this computer, right-click this computer, and click Properties

 3. Click Advanced System Settings

4. Enter environment variables

 

 5. Select "Path" in "System Variables" and click "Edit"

6. Enter "Path" and create a new one, paste the copied path into "Path"

7. Click OK 

8. Click OK

 

9. Verify whether the environment variables are configured properly, press the "window+R" key to pop up the run box, enter "cmd" to enter the window command line

 10. Enter "mysql -u root -p" and press Enter twice

Success! ! !

The production is not suitable, give it a thumbs up

If you encounter a similar error later: Access denied for user ''@'localhost' to database 'mysql'

Solution: SHOW GRANTS FOR 'root'@'127.0.0.1';

Five, MySQL operation

Super detailed operation tutorial:

chttps://blog.csdn.net/qq_59344199/article/details/128034135?spm=1001.2014.3001.5501

 If not, you can learn by yourself

Guess you like

Origin blog.csdn.net/qq_59344199/article/details/127558950