[How To] Setup MySQL Listen on Localhost Only

[How To] Setup MySQL Listen on Localhost Only



If You want that MySQL listen only to localhost edit the MySQL configuration file and write

bind-address=127.0.0.1

Configuration file can be /etc/my.cnf or /etc/mysql/my.cnf
Next, you will need to restart the database server:

$ sudo /etc/init.d/mysql restart

No Responsesto “[How To] Setup MySQL Listen on Localhost Only”

Trackbacks/Pingbacks

  1. Typo3 Install with Downloaded Version (More Up-to-Date) | TechStuff - [...] 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…

Leave a Reply

Your email address will not be published. Required fields are marked *