What I did was as follows:
ssh -L 3306:adpaz.mysql.pythonanywhere-services.com:3306 adpaz@ssh.pythonanywhere.com
That was the way out:
<<<<<<:>~ PythonAnywhere SSH. Help @ https://help.pythonanywhere.com/pages/SSHAccess
adpaz@ssh.pythonanywhere.com's password:
bind [127.0.0.1]:3306: Address already in use
17:13 $ ~
And this is code I use in Django:
DATABASES = {
"default": {
"ENGINE": "django.db.backends.mysql",
"NAME": "adpaz$adpaz",
"USER": "adpaz",
"PASSWORD": #database password,
"HOST": "127.0.0.1",
"PORT": "3306",
}
}
This is the error it generates:
django.db.utils.OperationalError: (1045, "Access denied for user 'adpaz'@'localhost' (using password: YES)")
I also tried this:
mysql -h 127.0.0.1 -u adpaz -p
But this happens:
Enter password:
ERROR 1045 (28000): Access denied for user 'adpaz'@'localhost' (using password: YES)