Today, using mysql Navicat connection when reported 2059 errors, in order to solve this seemingly is not difficult issue, access to relevant information, will now experience are summarized below.
problem analysis:
The reason this error first appeared in 2059 because the previous version of mysql8 encryption rules mysql_native_password. But mysql8 after encryption rules caching_sha2_password. We can encrypt mysql user login rules be modified by finding a variety of solutions on the network. Revised to mysql_native_password.
Concrete steps to address:
(1) Win + R to open the cmd command line (Windows, for example, Mac similar);
(2) after a successful login using the ALTER USER 'root' @ 'localhost ' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER modify the encryption rule.
(3) modify the encryption rule we can complete the USER through the ALTER 'root' @ 'localhost' IDENTIFIED the WITH mysql_native_password BY '123456' update about our user's password.
The whole process is shown below: