zoukankan      html  css  js  c++  java
  • Navicat 连接Mysql 8.0以上版本报错1251

    Navicat 连接Mysql 8.0以上版本报错1251
    1251-Client does not support authentication protocol requested by server;

    解决办法: 更改加密方式:
    ALTER USER 'root'@'localhost' IDENTIFIED BY 'xxxxxxJ';
    set global validate_password.policy=0;
    update mysql.user set host = '%' where user = 'root';
    set global validate_password.length=4;

    ALTER USER 'root'@'%' IDENTIFIED BY 'xxxxxxxJ' PASSWORD EXPIRE NEVER;
    ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'xxxxxxxJ';
    flush privileges;

    create user 'abcd'@'localhost' identified by 'abcdddd';
    grant all privileges on dbname.* to 'abcd'@'localhost';

  • 相关阅读:
    敏捷软件开发实践-Code Review Process(转)
    随笔1
    随笔
    随笔
    低级错误
    随笔
    随笔2
    随笔
    这以前写的代码
    蛋疼的vs
  • 原文地址:https://www.cnblogs.com/walkersss/p/14512601.html
Copyright © 2011-2022 走看看