Loading

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的方式进行加密;

 

为啥呢?

posted @ 2018-05-12 16:08  stono  阅读(510)  评论(0编辑  收藏  举报