Disable MySQL server from listening for TCP/IP connections
If you only connect to the MySQL server from localhost and you might want to disable TCP/IP networking feature so the server is more secure.
To do so, edit the MySQL configurations, e.g. /etc/my.cnf
Don't forget to restart MySQL to take effect.
# /sbin/service mysqld restart