[How To] Configuring MySQL to listen localhost only.

, , 1 Comment



  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
 

One Response

Leave a Reply