mysql不能外网访问如何解决
yang
2020-04-29 15:54:514079浏览 · 0收藏 · 0评论
mysql不能外网访问解决方法:
1、在/etc/mysql/my.cnf中的[mysqld]段注释掉bind-address = 127.0.0.1
2、给用户授权允许远程访问:
grant all privileges on *.* to root@"%" identified by "pwd" with grant option;
flush privileges;
推荐:MySQL教程
关注公众号,随时随地在线学习