You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mysql 8.0 更新了加密方式plugin,mysql5用的是sha256_password加密方式,mysql8用的是caching_sha2_password的加密方式,所以导致mysql8连接时报错
为了方便访问,提供在mysql8中创建原来加密方式账号的方法
首先如果root用户没有SYSTEM_USER权限,先添加权限
grant system_user on . to 'root';
flush privileges;
再执行下面的创建用户的操作
1.创建用户
create user 'username'@'%' identified by '123456';
2.用户授权
grant all privileges on . to 'username'@'%'
3.修改成原来的加密方式
alter user 'username'@'%' identified with mysql_native_password by '123456';
4.刷新MySQL系统权限相关表
flush privileges;
请详细描述您对本项目的任何问题,我们会在第一时间查阅和解决。
报错字段: Client does not support authentication protocol requested by server; consider upgrading MySQL client
报错图片如下
config.js 密码已修改成本机的
mac mysql 版本
The text was updated successfully, but these errors were encountered: