Mysql8.0不支持grant all privileges on *.* to root@“%“ identified by “.“;
时间:2020-12-21 09:12:46
收藏:0
阅读:353
MySQL 8.0已经不支持下面这种命令写法
grant all privileges on *.* to root@"%" identified by ".";
正确的写法是先创建用户
CREATE USER ‘root‘@‘%‘ IDENTIFIED BY ‘Hadoop3!‘;
再给用户授权
grant all privileges on *.* to ‘root‘@‘%‘ ;
原文:https://www.cnblogs.com/caibaotimes/p/14166038.html
评论(0)