美文网首页
MySQL 8.0 授权远程访问

MySQL 8.0 授权远程访问

作者: 4164fccdcf1c | 来源:发表于2018-11-16 00:17 被阅读4次

Access denied for user 'root'@'localhost' (using password:YES)

CREATE USER 'username'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'username'@'%';

Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/mysql/lib/plugin/caching_sha2_password.so, 2): image not found

ALTER USER 'username'@'%' IDENTIFIED WITH mysql_native_password BY 'password';

综合

CREATE USER 'username'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'username'@'%';

相关文章

网友评论

      本文标题:MySQL 8.0 授权远程访问

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