错误写法:
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 密码 会报错;
具体版本区别没做实验。。。。