0
点赞
收藏
分享

微信扫一扫

mysql 给远程用户授权,使其有权限连接到数据库

佛贝鲁先生 2022-01-28 阅读 143

方法一:使用命令行 

C:\Users\DELL>mysql -u root -p
Enter password: ****
mysql> select host from user where user='root';
mysql> update user set host='%'where user='root'
mysql> flush privileges

方法二:Navicat连接本地数据库,找到库中的user表,修改host为%,表示授权给所有的用户

举报

相关推荐

0 条评论