Download and install MySql5.7.39 and Navicat

One: Download MySql

1. Enter the official website of mysql: MySQL

Click DOWNLOADS at the top

 Enter the MySQL::MySQL Downloads interface

Find the bottom MySQL Community (GPL) Downloads »

 Enter the MySQL :: MySQL Community Downloads interface

 Find MySQL Installer for Windows

Enter the MySQL::Download MySQL Installer interface, the latest MySql version as of 2022.09.29 is 8.0.30

In this interface, find on the right Looking for previous GA versions?

Download the previous version, not such a high version.

 Click Looking for previous GA versions? to enter the MySQL :: Download MySQL Installer interface

Select the following (mysql-installer-community-5.7.39.0.msi) and click Download on the right

 Enter the MySQL :: Begin Your Download interface, click No thanks, just start my download at the bottom.

 2. Download link: https://cdn.mysql.com//Downloads/MySQLInstaller/mysql-installer-community-5.7.39.0.msi

The downloaded file is mysql-installer-community-5.7.39.0.msi

Two: Install MySql

Double-click the downloaded mysql installation file "mysql-installer-community-5.7.39.0.msi" to open the installer, and wait for a while after opening.

Select the installation type (according to personal needs)

 Because we only need to install mysql server, so we choose Custom here

 Click Next, enter the Select Products interface, expand the first item on the left MySQL Servers until MySQL Server5.7.39-X64 appears, select MySQL Server5.7.39-X64 and click the green arrow in the middle

 勾选Enable the Select Features page to customize product features,点击Next

 Enter the Check Requirements interface, select MySQL Server 5.7.39, and click Execute

 Check I agree to the license terms and conditions, click Install

 Wait for the installation of Microsoft Visual C++2013 to complete, click Close

 Click Next

 Enter the Select Features To Install interface, uncheck Development Components and Documentation, and click Next

 Enter the Installation interface, click Execute

 Wait for the green check mark icon to appear in front, the Status is Complete, click Next

 Enter the Product Configuration interface, click Next

 Enter the Type and Networking interface, click Next

 Enter the Accounts and Roles interface

MySQL Root Password :123456

Repect Password:123456

Please keep in mind the password 123456, which is required for database connection later.

Click Next

 Enter the Windows Service interface, click Next

 Enter the Apply Configuration interface, click Execute

 Wait for all the green checkmark icons to appear in front, and click Finish

 Enter the Product Configuration interface, click Next

 Enter the Installation Complete interface, click Finish to complete the installation.

 3. Install Navicat for MySQL

Navicat for MySQL is paid software

Official website: Navicat for MySQL | MySQL database management and development tools

 Enter the license interface, select I agree, and click Next

 Enter the interface for selecting the installation folder

 Click Browse to select another directory, here select D disk, if there is no Program Files folder in D disk, please create this folder, and create a PremiumSoft folder under this folder. Just create these two levels of folders, and the Navicat for MySQL folder will be created automatically, so when browsing the directory, just select D:\Program Files\PremiumSoft.

 Enter the Select Start Directory interface, click Next

 Enter the interface for selecting additional tasks, click Next

 Enter the ready to install interface, click Install

 Wait for the installation to complete and click Finish.

4. Test navicat to connect to mysql

Double-click Navicat for MySQL on the desktop to open Navicat for MySQL software

Enter Navicat for MySQL, the Navicat update program interface appears, cancel the automatic check for updates at startup, and click Close.

 click to connect

 Select MySQL

 Enter the MySQL-new connection interface

 Connection name: MySQL57

Password: 123456

Click to test the connection

 A prompt box showing a successful connection appears, click OK, and the mysql connection is successful.

 click OK

 Navicat uses the newly created connection MySQL57, right click to open the connection

 

 You can open the database, create a new database, run SQL files... a series of operations

Take creating a new database trade and running the SQL file as an example, the sql file was created before.

Character set selection utf8 -- UTF-8 Unicode

Collation selection utf8_unicode_ci

click OK

 Right click on the newly created database trade

 open database

 Right-click to run the SQL file, select the file, and click Start

 

 Successfully appears, indicating that the operation is successful, click Close.

 Right-click the trade database, close the database and open the database again, the database refresh is complete, and the tables in the database appear.

Guess you like

Origin blog.csdn.net/Jushuzhan/article/details/127106965