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.
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)
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.
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"
Start mysql, enter "net start mysql" in the bin command window, and start successfully.
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.
alter user 'root'@'localhost' identified with mysql_native_password by 'xxx';
flush privileges;
//其中xxx为你的登录密码。
Finally, the test connection was successful.