当前位置:Gxlcms > 数据库问题 > myysql 不能远程访问的解决办法

myysql 不能远程访问的解决办法

时间:2021-07-01 10:21:17 帮助过:14人阅读

1.通过navicat或者命令行,将user表中原来host=localhost的改为host=%

命令行方式:

mysql> update user set host = ‘%‘ where host= ‘localhost‘;

2.授权访问给root用户

 mysql>grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘password‘ with grant option;

3.刷新mysql的权限配置

mysql> flush privileges;

myysql 不能远程访问的解决办法

标签:set   cal   ide   localhost   bsp   命令   navicat   解决   ges   

人气教程排行