MySQL+Navicat installation configuration

First, install and configure MySQL for Windows

Note: If it is reinstallation, please perform the operation in this article to completely uninstall MySQL

1. MySQL


(1) Enter the address MySQL Community Downloads in the address bar of the browser , and press the <Enter> key to enter the download page of the official MySQL website

ff95eb1993e84b8986f4e9fa12e1e43a.png

(2) Click MySQL Community Server to enter the page. Show download buttons for MySQL in different formats

7611b505f4e14270b631fddb55b352f3.png

(3) Here we click Archives to download other versions 

84d947d51315467b80752600a62fdc88.png

(4) Choose version 5.7.37 here, and then choose according to the 32-bit/64-bit computer, click Download

ed7053f2793045f6ab95eece0f509109.png

PS: If the browser download is too slow, we can use Xunlei, the first step is to right-click Download and copy the link 

The second step is to open Xunlei and create a new download task

 9280f89b693044d5986fac6d6eb5c033.png

 

At this time, the download speed will be much faster, remember to decompress after downloading

e61bd53876f84557914f6d782d404b2f.png

 

(5) The next step is to configure and initialize MySQL

First, create a new configuration file my.ini and a folder data in the directory you just downloaded

Open my.ini with Notepad , enter the following content (the path in the content must be your own path, remember to modify)

[mysqld]
# 设置3306端口
port=3306
# 设置mysql的安装目录   ----------是你的文件路径-------------
basedir=D:\mysql-5.7.37-winx64
# 设置mysql数据库的数据的存放目录  ---------是你的文件路径data文件夹自行创建
datadir=D:\mysql-5.7.37-winx64\data
# 允许最大连接数
max_connections=200
# 允许连接失败的次数。
max_connect_errors=10
# 服务端使用的字符集默认为utf8mb4
character-set-server=utf8mb4
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
# 默认使用“mysql_native_password”插件认证
#mysql_native_password
default_authentication_plugin=mysql_native_password
[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8mb4
[client]
# 设置mysql客户端连接服务端时默认使用的端口
port=3306
default-character-set=utf8mb4

 (6) Open the command line as an administrator, remember to run it as an administrator

4d3a684b1c4d49178ba70edab896aa54.png

(7) Enter the bin directory of the installation directory, first enter D: on the command line (because mine is on the D drive, the specific situation is inferred)

After entering, enter cd D:\mysql-5.7.37-winx64\bin (the specifics must be based on yourself)

863103bd620747249e2c60864107aa1e.png

Then to install, enter

mysqld --install

Note: Here you may encounter the problem that the dll file is missing or mysql.exe cannot start, if not, please ignore it 

The reason for the problem is that the system dll dynamic link library or c++ dependent library is missing, which causes the installation to fail, so these libraries need to be repaired

6bbaeef24d864a139005e194fd37002a.png

Repair tool   extraction code: n16n

Remember to run it as an administrator, then find the option in the tool, and check the smart recommendation and C++ powerful repair

dcb26dcb425744369ef313bc6987da89.png

 

 111ecbcbaf3347f18a073ee279706050.png

 

Then repeat the above operation

 11dd50e45d41437c9de1a23b10477000.png

Next check the automatically generated password

mysqld --initialize --console

c5640a7c748f45c4b90697d732e5ca07.png Copy the password, it will be used later to change the password 

(8) Start MySQL

net start mysql

4ad58bfe3ba14564b9b9b2421e543833.png

(9) To log in to MySQL, enter the password for the initialization that you just remembered, and you cannot enter a single word wrong

mysql -u root -p

c5fc2fec506445c2bda3a7f45c37e7ed.png

(10) Change password, (BY 'new password')

ALTER USER 'root'@'localhost' IDENTIFIED BY 'root';

57e9a060ef1c4a20b3984e181b712652.png

Enter exit to exit

c996c86c432941c78b0869bba3d8da39.png

(11) Environment variable configuration

Open environment variables

520d09eef90242dcb3e004c285c20302.png

65e1e97d565e4c348e233f998bd78474.png

33f0474f744c4d02a48b20dc11631be7.png

Variable name: MYSQL_HOME
variable value: your MySQL installation path 

 4b105e5943014202abc2750c09b9ca95.png

Then find the path , edit 

ac7672e3cf0d41b9b4ea82eee66f5a5b.png

new, enter

%MYSQL_HOME%\bin

 b5808450a149412db78ac765db00e7a1.png

 

This is what I have installed before 

Next, you can see MYSQL running in the service

bb66a81aef454bd9ae4f27bf327c0c72.png

二. Navicat

(1) There is a Premium 15 installation package in the compressed package below, download it first, and remember to decompress it

Navicat download  extraction code: vfmc

(2) Double-click the second installation packageec3044ef420e4f96b04b2adddce9be0b.png

b51ff0328af84680a920cc3eba52ef74.png

c4f1bdaf6d094c8e939eaba53fc95b33.png

5268b8a8b6874af5abc9612a3d4dfa3f.png

Go to the next step, go here to install

7fc1c1fe945042b3843879b2409372a6.png

Remember: please do not open the software after installation,

(3) Open another file below, please close the real-time protection of Windows in advance, and please close other protection software

01f9472f45ce4bf38094e93becb9c5bf.png

 

The next step is to register and log in

Click Path to select the navicat.exe file  in the navicat directory just installed

1c69348911984ffbb6b68bbc21e0dc64.png

 

This window appears to indicate success, and other settings can be defaulted, and then click Generate (register) to generate a registration code , copy 

 

Run Navicat, click register , do not click trial, enter the registration code just now in the software registration column

 

At this time, the server is temporarily unavailable window will appear, click manual

copy request code

 

Put it in the Request Code (request code) of the registration machine

 

Click Generate in the lower left corner

 

Copy the contents of Activation Code

 

Go back to Navicat and enter

Because this broken review system does not allow me to pass, so I will not post pictures of the process, please forgive me, please follow the steps yourself, and if you have any questions, please hit me in the comment area

(4) Open Navicat and create a new connection

64b78fca2a6740059bcc9ca7cc5a8da3.png

ded2996200d04e1fb6133114ab1c1b20.png

c40bd2fcaf8c446493bbedbb4a5cd865.png

d71e854138124cafa565f60b6b95e136.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Guess you like

Origin blog.csdn.net/Lorrey_/article/details/124524897