Mysql installation and configuration tutorial (detailed)

First, a brief overview is divided into several steps:

1. Download MySQL

2. Install MySQL

3. Verify whether the Mysql installation is successful

Fourth, configure environment variables

5. Verify whether the configuration environment variables are successful

1. Download MySQL

To install MySQL on Windows or Mac, first download the latest MySQL Community Server version from the official MySQL website:

Official website: https://www.mysql.com/

1. First enter the official website page

2. Click DOWNLOADS

3. Click MySQL Community (GPL) Downloads

 4. Click MySQL Installer for Windows

5. Click Download

6. Click No thanks, just start my download  , here you can skip the registration and download directly.

2. Install MySQL

1. Find the downloaded installation package file directory and click

2. Start the installation

2. After entering the page, select the last custom option and click next

 

 

 

3. Select the version you need to install and make sure to change the installation path and data path. Pay attention to the installation path, which will be used to configure environment variables later. After confirming, click next to enter the next page.

4. After entering this page, click next

5. A path warning will pop up, no management is required, just click Yes.

 6. All the way is unimpeded, click next.

7. Set a password (use strong password authentication, use legacy authentication)

8. After Next, click "Execute" directly to start the installation, and you need to wait for a while after clicking the installation

 

 The installation is complete

 3. Verify whether the Mysql installation is successful

1. Start searching in Windows, enter Mysql, and select the first one to open.

 2. Enter the password during installation.

3. The installation is successful.

 Fourth, configure environment variables

1. Find the MySQL installation path (note that it is the bin file).

 2. Right-click to open "This Computer" properties, first click "Advanced System Settings", and then click "Environment Variables".

 3. Click "Environment Variables", select "path" in "System Variables", and then click "Edit".

 4. After clicking "New", copy and paste the path of Mysql, and then click "OK".

 5. Make sure to save the settings all the way.

5. Verify whether the configuration environment variables are successful

The "window+R" key pops up the run box, enter "cmd" to enter the window command prompt, enter "mysql -uroot -p" and press Enter, then enter the password, press Enter, and the following interface appears, indicating that the configuration is successful.

 At this point, the installation and configuration have been completed.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Guess you like

Origin blog.csdn.net/weixin_72040646/article/details/129387630