- 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
bind-address=127.0.0.1
$ sudo /etc/init.d/mysql restart
Leave a Reply