用root 登录mysql: mysql -u root -p 输入密码登录成功后执行以下语句: alter user 'username'@'%' identified with mysql_native_password by 'password';
重新连接OK
用root 登录mysql: mysql -u root -p 输入密码登录成功后执行以下语句: alter user 'username'@'%' identified with mysql_native_password by 'password';
重新连接OK