mysql远程连接权限grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘123456‘ with grant option语句报错
记录一下自己安装mysql遇到的小坑
grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘123456‘ with grant option
只适用于mysql8.0之前的版本
之后采用这句:
create user root@'%' identified by '123456';
grant all privileges on *.* to root@'%' with grant option;
本文介绍在MySQL8.0及更高版本中如何正确配置远程连接权限,包括使用create user语句创建用户和grant all privileges语句赋予权限的具体步骤。

1万+

被折叠的 条评论
为什么被折叠?



