21xrx.com
2024-04-26 21:05:43 Friday
登录
文章检索 我的文章 写文章
配置mysql远程连接教程
2019-12-31 16:15:52 Z     --     --
配置mysql远程连接教程
vim /etc/mysql/my.cnf

bind-address =127.0.0.1 (修改为0.0.0.0)

登陆 mysql mysql -uroot -p

>grant all privileges on *.* to '(数据库账号)'@'% ' identified by '(密码)' with grant option;

>flush privileges;

>exit;

开发3306端口

iptables -A INPUT -p tcp --dport 3306 -j ACCEPT 

iptables -A OUTPUT -p tcp --sport 3306 -j ACCEPT 

  
  

评论区

{{item['qq_nickname']}}
()
回复
回复
    相似文章