Mysql8.0不支持grant all privileges on *.* to root@“%“ identified by “.“;

MySQL 8.0已经不支持下面这种命令写法
grant all privileges on . to root@"%" identified by “.”;

正确的写法是先创建用户
CREATE USER ‘root’@’%’ IDENTIFIED BY ‘Hadoop3!’;

//刷新
flush privileges;

再给用户授权
grant all privileges on . to ‘root’@’%’ ;

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/w15562397578/article/details/114132432
今日推荐