Problem description: After upgrading the local MySQL version to 8.0.23 from 5.5.27, using SQLyog (Little Dolphin) to connect, the following prompt error appears:
Client does not support authentication protocol requested by server;consider upgrading MySQL client
Solution:
The first method : upgrade the version of the connection tool
The second method : restore the encryption rules for user password login to the encryption method mysql_native_password ( personal recommendation )
MySQL 8 (download from official website: https://dev.mysql.com/downloads/installer/ ) The encryption rule in previous versions is mysql_native_password, and after mysql8, the encryption rule is caching_sha2_password, so if you don’t want to upgrade and replace the MySQL connection tool Use the following methods to modify the encryption rules:
Step 1: Find the MySQL installation path, and create a new system variable in (My Computer->Right-click->Properties->Advanced System Settings->Environment Variables) System Variables
变量名:MYSQL_HOME
变量值:C:\Program Files\MySQL\MySQL Server 5.7(就是你自己安装的位置)
Step 2: Find in system variablesPath并追加MySQL