I am running an ubuntu server, which has a LAMP stack. The problem is I can't access MySQL remotely.
I have uncommented the bind-address, in the my.cnf file, but this has no effect.
netstat -tap | grep mysql
output is:
tcp 0 0 *:mysql *:* LISTEN 18079/mysqld
tcp 0 0 localhost:mysql localhost:45288 TIME_WAIT -
tcp 0 0 localhost:mysql localhost:45802 ESTABLISHED 18079/mysqld
tcp 0 0 localhost:mysql localhost:45286 TIME_WAIT -
tcp 0 0 localhost:45802 localhost:mysql ESTABLISHED 18134/sshd: root
tcp 0 0 localhost:45287 localhost:mysql TIME_WAIT -
I can't telnet the server on port 3306 either, although I have made sure that port 3306 is open, using this command:
/sbin/iptables -A INPUT -i eth0 -p tcp --destination-port 3306 -j ACCEPT
Telnet output is:
Operation timed out
telnet: Unable to connect to remote host
Result of iptables -L -nv:
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306