After installing mysql, Command Line Login is no problem, but suggested that errors occur in Navicat connection. Mysql version: 8.0.15
Command is as follows:
1、use mysql;
2、alter user 'root'@'localhost' identified with mysql_native_password by '********';
3、flush privileges;
Then reconnect
In MySQL8.0.4 before execution
SET PASSWORD = PASSWORD ( '[Modify password]');
can change the password, but 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".
Because the current database has a lot of tools and links packages do not support "caching_sha2_password", for convenience, I was back to being a "mysql_native_password" authentication plugin.
Change the user password, execute the command in MySQL:
ALTER USER 'root' @ 'localhost ' IDENTIFIED WITH mysql_native_password BY ' new password';
modify password authentication plug-ins, and change the password.