zoukankan      html  css  js  c++  java
  • navicat链接mysql 8 出现 2015 authentication plugin 'caching_sha2_password' 错误

    navicat链接mysql 8 出现 2015 authentication plugin 'caching_sha2_password' 错误

    学习了:https://segmentfault.com/q/1010000014558323

    使用mysql自带的 MySQL 8.0 Command Line Client - Unicode 登录,

    然后使用命令:

    alter user 'root'@'localhost' identified with mysql_native_password by 'root';

    进行密码的更新;

    然后就可以登录了;

    然后在mysql库中进行查询:

    SELECT host,user,`plugin`,authentication_string FROM `user`;

    可以注意到plugin字段,对于自己新创建的用户,就会出现caching_sha2_password的内容;

     学习了:http://blog.51cto.com/arthur376/2108183?utm_source=oschina-app

    vim my.cnf
    [mysqld]
    default_authentication_plugin=mysql_native_password

     为什么我修改my.ini文件,然后又重新启动了数据库,新建了用户,但是默认的加密方式还是没有变化呢?

     又学习了:http://www.jb51.net/article/139219.htm

    找到另外一个mysql目录,创建了my.ini,还是不能够默认使用mysql_native_passwod的方式进行加密;

    为啥呢?

  • 相关阅读:
    Go 指针
    Go 字符串
    Go Maps
    Go 可变参数函数
    Go 数组和切片
    pyqt5实现窗口跳转并关闭上一个窗口
    spy++查找窗口句柄
    Python中Tk模块简单窗口设计
    pyqt5无边框拖动
    pyqt5 GUI教程
  • 原文地址:https://www.cnblogs.com/stono/p/9028988.html
Copyright © 2011-2022 走看看