品易云推流 关闭
文章详情页
文章 > MySQL > mysql不能外网访问如何解决

mysql不能外网访问如何解决

mysql

头像

yang

2020-04-29 15:54:513661浏览 · 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教程

关注

关注公众号,随时随地在线学习

本教程部分素材来源于网络,版权问题联系站长!

底部广告图