Forums

Healthy Site Suddenly Got 111 Connection refused

Hello, I've been running my site healthily for 2 years or so and I actually haven't touched the code for months. Several weeks ago I still can access my site but yesterday I suddenly got the following exception:

mysql.connector.errors.InterfaceError: 2003: Can't connect to MySQL server on 'mysql.server:3306' (111 Connection refused)

Any idea on where to work on?

Hi there,

That is because the mysql.server hostname has been deprecated. If you go to your databases page, you will see the new correct hostname. Then you need to change your setting from the old host to the new one.

Conrad

Thank you sososo much! That solves the problem!