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!';
再给用户授权
grant all privileges on *.* to 'root'@'%' ;

 

posted @ 2020-02-23 02:31  StarFox  阅读(6573)  评论(0编辑  收藏  举报