To set MySQL so it listens on localhost only, effecttively closing port 3306 on your public IP, add the following line to your /etc/my.cnf in the mysqld section:
bind-address = 127.0.0.1
Then restart MySQL by running service mysql restart
To set MySQL so it listens on localhost only, effecttively closing port 3306 on your public IP, add the following line to your /etc/my.cnf in the mysqld section:
bind-address = 127.0.0.1
Then restart MySQL by running service mysql restart