Download and installation of MySQL database
In the last section we have a brief understanding of the database and some related concepts
Students who didn't read the previous section click here
Next, we first need to learn how to download and install the database
1 MySQL database version
At present, MySQL official website provides us with two versions, one is the community version and the other is the commercial version:
Community Edition (MySQL Community Server)
This version of the database is the same as the previous version, it is completely free, but MySQL does not provide any technical support
Commercial Edition (MySQL Community Enterprise Edition)
This version is charged, we can also try it for free for 30 days, and the official will also provide relevant technical support
We are using:
What we are going to use here is the latest community version of MySQL 8.0.26
2 MySQL download
Method 1:
Directly open the download URL of the MySQL community version below:
https://dev.mysql.com/downloads/windows/installer/8.0.html
After opening it, as shown in the figure, click download in the interface to download
Method 2:
First visit the official website of MySQL https://www.mysql.com and then click the Downloads option on the opened page to find the community version and download it.
3 MySQL installation
Note: If you have installed MySQL before, you need to uninstall the previous version before installing this new version~
Uninstall manual click here
step 1:
Find the MySQL installation package we just downloaded, which is the msi file, and double-click to run it.
At this time, we are preparing to enter the MySQL installation environment, wait a moment~
Step 2:
Enter the MySQL installation environment, and the following interface will pop up:
We can choose the default developer mode, no need to change, just click "Next" Next step
here is a prompt, indicating that the following content is automatically parsed, click "Execute "Check, after the check, a pop-up window will prompt to click "Yes"
Step 3:
The following is the content that needs to be installed. Click "Execute" to execute the installation. It may take a few minutes
. After installation, there is a small green tick in front of each content.
Step 4:
Enter the product configuration link, click "Next"
to see that the default port number of MySQL is 3306, click "Next" to continue, and continue
to select "Next" in the pop-up page to install
Step 5:
Enter the account and role configuration page, and enter the password you set yourself
. If your password is relatively simple, it may show that the password security level is weak, but it doesn’t matter. Click “Next” to continue
. Service, the name of the service is MySQL80
and the MySQL service will start automatically as the system starts.
Click "Execute" on the pop-up page to execute the application of our configuration information just now. After a few minutes
, click "Finish" " to complete the installation
Step 6:
The next step after the installation is product configuration, no additional settings are required, just operate as shown in the figure.
Here is to connect to the MySQL server, enter your user name and password, and click check to check.
At this point our database has been installed, the next section will share with you how to start, stop and connect to MySQL