美文网首页
mysql 报错 Error: ER_NOT_SUPPORTED

mysql 报错 Error: ER_NOT_SUPPORTED

作者: iGolden | 来源:发表于2018-10-22 16:28 被阅读0次
mysql报错
Unhandled rejection Error: Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested b
y server; consider upgrading MySQL client

解决办法

修改加密规则为普通模式,默认是严格加密模式

  1. 进入mysql控制面板,输入mysql -uroot -p,输入密码
  2. 在控制面板上依次输入
    • 修改加密规则
    ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; 
    
    • 更新用户密码
    ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
    
    • 刷新权限
    FLUSH PRIVILEGES;
    
  3. 输入刚刚修改的密码,再次测试连接即可。

参考:mysql8.0版本 报错:Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol...

相关文章

网友评论

      本文标题:mysql 报错 Error: ER_NOT_SUPPORTED

      本文链接:https://www.haomeiwen.com/subject/xjmgzftx.html