Linux系统上安装mysql8.0及以上版本,远程授权失败的解决方式

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/tiberroot/article/details/89155516

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;

猜你喜欢

转载自blog.csdn.net/tiberroot/article/details/89155516
今日推荐