I want to remotely connect to a MySQL db on pythonanywhere. The code that I have works for remote connection to my db on AWS:
server = "somelongstring.rds.amazonaws.com"
pwd = "mypassword"
dbname = "mydatabase"
user = "myusername"
cnxn = MySQLdb.connect(server, user, pwd, dbname, charset='utf8', use_unicode=True)
Is there something similar I can use to connect remotely to a MySQL db on PythonAnywhere.
Thanks.
(I have an email in about my headscratching on this, but thought I should posts here too)