Forums

Can't connect to MySQL server

Hi,

I get the message: Can't connect to MySQL server on 'mysql.server:3306' (111 Connection refused)

the database configuration is: DATABASES = { 'default': { 'TEST_NAME': 'gheordi$test_atom', 'ENGINE': 'mysql.connector.django', 'NAME': 'gheordi$community', 'USER': 'XXX', 'PASSWORD': 'XXX', 'HOST': 'mysql.server', } }

You're using old deprecated server name. We sent out emails to warn users of this. Check out this form thread for more: https://www.pythonanywhere.com/forums/topic/2663/