[How To] Configuring MySQL to listen localhost only.

  1. 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
  2. Restart the database server.
    $ sudo /etc/init.d/mysql restart

No Responses

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.