Forums

Can't connect to MySQL server on 'paco020295.mysql.pythonanywhere-services.com' (10060)

I have seen many posts but i am finding no soluction. I am trying to connect from a django application. This is my DATABASES settings in settings.py

DATABASES =

'default': {
    'ENGINE': 'django.db.backends.mysql',
    'NAME': 'paco020295$franciscocv',
    'USER': 'paco020295',
    'PASSWORD': 'mypasswordhere',
    'HOST': 'paco020295.mysql.pythonanywhere-services.com',
}

Can anyone spot an error here? What else can i try?

This is the error:

django.db.utils.OperationalError: (2002, "Can't connect to MySQL server on 'paco020295.mysql.pythonanywhere-services.com' (10060)")

That all looks fine. Are you running your Django code inside PythonAnywhere? You won't be able to connect to the MySQL database from code running elsewhere.

What is the minimum account upgrade to allow connecting to the MySQL database from code running elsewhere (local) ?

$5 Hacker.