MySql远程连接不上的问题

来源:互联网 发布:李小龙力量数据 编辑:程序博客网 时间:2024/04/30 15:50

开启Mysql数据库的远程连接权限:

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

flush privileges;


对于某个IP地址:

grant all privileges on *.* to 'root' @192.168.0.% identified by '123456';


如果还连不上的话,可以打开3306的防火墙限制

0 0
原创粉丝点击