I've been having issues connecting to MySQL database from my local machine. I followed the guides for connecting from outside Pythonanywhere. I am able to SSH using PUTTY, Manual on CMD, and start a Pycharm shh session but I keep getting following error:
django.db.utils.OperationalError: (2002, "Can't connect to MySQL server on 'myusername.mysql.pythonanywhere-services.com' (10060)")
<br>
I confirmed that the password matches the one in my .my.cnf
file. I've tried changing passwords and dropping and creating a new database to connect to.
<br><br>
My Django connection looks as follows: <br><br>
'default': {
'ENGINE': "django.db.backends.mysql",
'NAME': "myusername$qoder-production",
'USER': "myusername",
'PASSWORD': "myspecialpassword",
'HOST': "myusername.mysql.pythonanywhere-services.com",
'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
},
}