- Edit the MySQL configuration file. Configuration file can be found in /etc/my.cnf or /etc/mysql/my.cnf. Add or edit following row:
bind-address=127.0.0.1
- Restart the database server.
$ sudo /etc/init.d/mysql restart
Linux/Unix Configuration and Programming
LinuxConfig.net
[…] see picture above) and maybe make the MySQL Server listen to the local host only, see for example http://linuxconfig.net/manual-howto/databases/how-to-setup-mysql-listen-on-localhost-only.html or http://www.tldp.org/HOWTO/Postfix-Cyrus-Web-cyradm-HOWTO/mysql-config.html (both not […]