I use the pymsql package of python to link the cleardb of heroku.
The following is the code which I type by visual studio code.
try: db = pymysql.connect(host=