1,创建用户的语句,可以新创建用户,也可以使用已有的用户,
create user ‘hh’@’%’ identified by ‘RRrr’;
2,授权语句,末尾不加 identified by ‘RRrr’ with grant option;
grant all privileges on . to ‘hh’@’%’ identified by ‘RRrr’ with grant option; ,
grant all privileges on . to ‘hh’@’%’
3,刷新权限
flush privileges;
Linux系统上安装mysql8.0及以上版本,远程授权失败的解决方式
最新推荐文章于 2024-08-22 15:26:44 发布