MySQL download configuration and connection with Navica

MySQL download configuration and connection with Navica

mysql download

Official website address: MySQL :: Download MySQL Community Server The downloaded version here is a compressed version, which can be used after decompression, which is more convenient.

insert image description here

After the download is complete, unzip it. Then place it where you want it. (Some configuration files can be deleted to reduce the memory space, or you can not delete them)

insert image description here

Enter the mysql installation directory, find the bin directory, enter the cmd command in the address bar, and then enter "mysqld --initialize-insecure" for non-password initialization.

insert image description here

Open the computer command prompt to run as an administrator, first switch to the bin directory of mysql just now, and then use the download command "mysqld --install"

insert image description here

Start mysql, enter "net start mysql" in the bin command window, and start successfully.

insert image description here

To modify the mysql password, first log in "mysql -uroot", and then enter the following code. Then restart the server

mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'XXX';
//XXX 为你想要更改的密码

Navicat connects to mysql

First start Navicat, select MySQL to connect, and enter the user name and password. If the following errors occur during the connection process, you only need to configure two lines of commands in the mysq command console.

insert image description here

 alter user 'root'@'localhost' identified with mysql_native_password by 'xxx';
 flush privileges;
 //其中xxx为你的登录密码。

Finally, the test connection was successful.

insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/qq_59088934/article/details/128377845