创建一个可远程访问的mysql用户

命令:[php]CREATE USER 'username'@'%' IDENTIFIED BY 'password';[/php]
创建一个可以任意主机连接的mysql用户

iptables设置
[php]iptables -A INPUT -p tcp -m tcp --sport 3306 -j ACCEPT
iptables -A OUTPUT -p tcp -m tcp --dport 3306 -j ACCEPT[/php]
service iptables save 保存规则
service iptables restart 重启iptables

Last modification:December 26th, 2017 at 12:58 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment

One comment

  1. Quicl

    666666 高手啊 iptables信手拈来