Error 1251 - Client does not support authentication protocol solution

# 1, the container login mysql, mysql version to view
status;

 

 

 

 

# 2, to authorize remote connection (Note mysql 8.0 License different from before)
GRANT ALL ON *.* TO 'root'@'%';
# Refresh permission
flush privileges

 At this point, you can not remote access, because Navicat only support older versions of encryption, encryption rules need to change the mysql

# 3, change the encryption rule
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;

 

# 4, update the root user password
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';
# Refresh permission
flush privileges;

 8.0 the previous version, operating

 

Guess you like

Origin www.cnblogs.com/armyant/p/11710119.html