I am working with my small Flask web app.Now I want to use the Database.After installed MySQLdb follow this tutorial:Using My SQL in Pythonanywhere,I tried these code in Python3.4 shell:
import MySQLdb
host = 'lancaster.mysql.pythonanywhere-services.com'
c = MySQLdb.connect(host=host,user='lancaster',passwd='HERE IS MY DB PASSWORD',db='default')
Then it showed some Error message:
So how to connect to the database?What goes wrong? Thank you!