MySql8.0授权语句

错误写法:

grant all privileges on *.* to yy@localhost identified by 'password' with grant option;

正确写法:

grant all privileges on *.* to yy@localhost with grant option;

8.0以前的版本需要在语句中添加identified by 密码;

8.0添加identified by 密码 会报错;

具体版本区别没做实验。。。。

猜你喜欢

转载自blog.csdn.net/GT_Stone/article/details/84403562
今日推荐