2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > mysql8.0_grant改变-You are not allowed to create a user with GRANT

mysql8.0_grant改变-You are not allowed to create a user with GRANT

时间:2019-04-05 05:33:18

相关推荐

mysql8.0_grant改变-You are not allowed to create a user with GRANT

mysql8.0以前的版本可以使用grant在授权的时候隐式的创建用户,8.0以后已经不支持,所以必须先创建用户,然后再授权,命令如下:

1. CREATE USER 'user_name'@'%' IDENTIFIED BY 'pass';2. grant all privileges on *.* to 'user_name'@'%';

另外,如果远程连接的时候报plugin caching_sha2_password could not be loaded这个错误,可以尝试修改密码加密插件:

alter user 'root'@'%' identified with mysql_native_password by 'Hadoop3!';

转自

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。