Setup firewall on MySQL port 3306 by using Iptables.
how can i close port 3306.. I was told people can hack into my server through mysql on port 3306
you should close all ports, by default, and you can run mysql locally only
do you have a firewall?
how can i go at doing that.. by turning iptables off ?
yes, firewall should default to everything blocked, then open only what you need. No, you need iptables running for your firewall
I did iptables -A INPUT -p tcp -d 3306 -j REJECT
I guess I just said all that for nothing
I just googled it and thats what it said to do
Did you read _any_ of what I typed?
yes
You can run mysql on the localhost only, if you don't need to connect from another box, besides the firewall issue
i dont know how to do that
bind-address = 127.0.0.1, in my.cnf, and no external addresses
OK, thank you!