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;
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐