Reference: https://www.cnblogs.com/zichuan/p/9203129.html
I use a method of solving
problem:
Client does when connected Navicat MySQL Server8.0 version not support authentication protocol requested by server;
the reason:
The current authentication protocol using a cryptographic hash algorithm with older algorithm used by the client is not compatible with (prior to 4.1). Try to use an older client to connect to a 4.1 or later server may fail with the following message:
A solution :( Reference: https://dev.mysql.com/doc/refman/5.5/en/old-client.html )
command is as follows:
1、use mysql;
2、alter user ‘root’@‘localhost’ identified with mysql_native_password by ‘********’;
3、flush privileges;
Solution two: (official document: https://dev.mysql.com/doc/refman/5.5/en/old-client.html)
(I did not use this solution, first used, information search time Some say this does not work, try here just to provide an alternative scenario)
the SET PASSWORD the fOR 'root' @ 'localhost' = OLD_PASSWORD ( '123456');