Forums

unable to connect aws mysql after upgrade

I unable to connect to aws MySQL after recent upgrade.

_mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL server on 'bk-prod-us1.cd2junihlkms.us-east-1.rds.amazonaws.com' (111)")

That's an external mysql server. Are you whitelisting by IP for the access?

Wait you are a free user- how could you ever connect to that external address?

I am not sure. It always can. I believe I am not the special case

for your reference aws is whitelisted https://www.pythonanywhere.com/whitelist/

Our whitelist only works for HTTP/S connections, and mysql doesn't use HTTP for its protocol. There's more info here.

If it was working before, it was only by accident I'm afraid! We never supported external database connections for free users...