Connection Refused on Startup

From Opentaps Wiki
Jump to navigationJump to search

Can't connect to database: Connection refused

Using analytics in conjunction with MySQL database is quite well documented. But if you still see numerous Connection refused exception during startup you should check the database itself.

Open your my.cnf file (in /etc/ or /etc/mysql/) in a text editor and look for the line defining the 'bind-address' parameter. In some OS it can have assigned IP address of one of the local interfaces. In this case you can set this to 127.0.0.1 or disable/delete that line.