Since the installation of the latest version of the official website, there have been some minor problems in the database connection process
Download free installation version of "Windows (x86, 64-bit), ZIP Archive", direct decompression, can refer to the following article:
Generate random passwords root, tedious and bad memories, so it is necessary to modify the initial password
To use the Alter User Change Password
The USER the ALTER ' root ' @ ' localhost ' IDENTIFIED BY ' new password ' ;
Here there is a problem, use navicat connection fails:
Authentication plugin 'caching_sha2_password' cannot be loaded
Before MySQL 8.04, execute: SET PASSWORD = PASSWORD ( '[New Password]'); however MySQL8.0.4 started, so that the default is not acceptable. Because before, MySQL password authentication plug-in is "mysql_native_password", but now using the "caching_sha2_password"
So once again we need to modify the password:
Start MySQL service: enter the MySQL bin directory
net start mysql
Log in MySQL
mysql -u root -p
Enter password:
change Password
use mysql; ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码'; FLUSH PRIVILEGES;
Navicat can connect successfully