Reason for occurrence
A 2058 error occurs when using sqlyog to connect to the database. The reason is that MYSQL8.0 has changed the encryption method of passwords, so we only need to change the encryption method of passwords to solve such errors.
Solution
win + r to open the run window and enter the cmd command
Enter the following command to enter mysql and enter the password
mysql -uroot -p
Enter mysql and use the command to change the password and encryption method:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
Where password is the modified password;
After modification, just use SQLyog to connect.