防火墙设置

iptables -I INPUT -p tcp  --dport 3306 -j ACCEPT
iptables -I INPUT -p tcp  --sport 3306 -j ACCEPT

use mysql;   
GRANT ALL ON *.* TO root@'*' IDENTIFIED BY 'admin' WITH GRANT OPTION;    

你可能感兴趣的:(防火墙设置)