美文网首页
MySQL 8.0.15 创建远程连接账号

MySQL 8.0.15 创建远程连接账号

作者: 尼尔君 | 来源:发表于2019-03-01 11:16 被阅读0次

不能用这个

mysql>grant all PRIVILEGES on *.* to test@'localhost' identified  by '123456';

先创建用户

create user 你的账号@'%' identified  by '你的密码';


grant all privileges on *.* to chenadmin@'%' with grant option;


flush privileges;

出现错误

Unable to load authentication plugin 'caching_sha2_password'.

解决方法

ALTER USER '你的账号'@'%' IDENTIFIED WITH mysql_native_password BY '你的密码.';

相关文章

网友评论

      本文标题:MySQL 8.0.15 创建远程连接账号

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