允许mysql服务远程访问

给登录用户授权

grant all privileges on *.* to root@'%' identified by "password";

刷新权限

flush privileges;

查询是否刷新权限成功

select host,user,password from user;

 

posted @ 2019-08-29 11:31  冷装丶  阅读(96)  评论(0)    收藏  举报