關于sqlyang 連接遠程服務器 MySQL "1251-client does not support authentication..."的處理辦法
原因是在mysql8之前的版本中加密規則為mysql_native_password
而在mysql8以后的加密規則為caching_sha2_password。
做如下修改
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; #修改加密規則 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密碼'; #更新一下用戶的密碼 FLUSH PRIVILEGES; #刷新權限

浙公網安備 33010602011771號