Disabling remote access to MySQL databases
admin | Sep 18, 2009 | Comments 0
Issue :
How to prevent anybody from accessing MySQL databases hosted on the server from any local PC ?
Solution :
This can be achieved in two ways :
1. By blocking the port 3306 . You can use iptables in order to do this :
/sbin/iptables -A INPUT -i eth0 -p tcp –destination-port 3306 -j DROP
OR
2. Put the following in my.cnf :
skip-networking
Source : WHT
Filed Under: Quick fixes • Technical
About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

1800 810 6547