mysql8授权 grant all privileges on 语句报错

原授权语句

GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;

mysql8.0版本使用语句变为:

grant all privileges on *.* to 'root'@'localhost';

posted on 2023-03-09 13:59  3SU  阅读(235)  评论(0编辑  收藏  举报