美文网首页
grant all privileges on *.* to ‘

grant all privileges on *.* to ‘

作者: 冷月葬花魂_ | 来源:发表于2020-11-16 10:35 被阅读0次

mysql远程连接权限

grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘123456‘ with grant option;

语句报错

这条语句适用于MySQL8.0之前的

而MySQL8.0及之后的,设置远程连接权限要用下面的语句才可以

createuserroot@'%'identifiedby'123456';

grantallprivilegeson*.*toroot@'%'withgrantoption;

相关文章

网友评论

      本文标题:grant all privileges on *.* to ‘

      本文链接:https://www.haomeiwen.com/subject/luuabktx.html