
rchaves
(usa Debian)
Enviado em 19/07/2012 - 12:24h
Seguinte, estou tentando o acesso remoto ao mysql, no arquivo /etc/mysql/my.cnf já alterei a linha
bind-address = 127.0.0.1
para
bind-address = 0.0.0.0
já liberei as permissões no mysql com o comando
GRANT ALL ON mydb.* TO root@'%' IDENTIFIED BY 'MyPASSWORD';
já permiti no iptables com
/sbin/iptables -A INPUT -i eth0 -p tcp --destination-port 3306 -j ACCEPT
meu comando iptables -L está assim:
==========================================
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- localhost anywhere tcp dpt:mysql
ACCEPT tcp -- localhost anywhere tcp dpt:mysql
ACCEPT tcp -- anywhere anywhere tcp dpt:mysql
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
==========================================
e ao executar o comando "netstat -ln | grep 3306", me retorna o seguinte:
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
ao executar o comando "telnet localhost 3306" ele roda direitinho, mas ao utilizar o ip externo no meu servidor num vai, dá timeout
tem mais alguma coisa que eu tenho que fazer pra liberar essas bendita porta?