美文网首页
连接 mysql 出现Client does not suppo

连接 mysql 出现Client does not suppo

作者: One_Hund | 来源:发表于2018-06-04 21:52 被阅读0次

问题

在初始化小程序数据库时遇到了Client does not support authentication protocol requested by server ; consider upgrading MySQL client错误

解决方案

use mysql;
alter user ‘root’@’localhost’ identified with mysql_native_password by ‘你的密码,若无密码为空’;
flush privileges;

问题得以解决:


相关文章

网友评论

      本文标题:连接 mysql 出现Client does not suppo

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