I have created a MySQL db using the code:
my_engine = create_engine(
"mysql+pymysql://{user}:{pw}@{host}/{db}".format(
host='localhost:8000',
user="user_name",
pw="user_pass",
db="my_db"),
echo=True,
)
the code
my_engine.execute( 'DROP TABLE IF EXISTS {}'.format(table) )
works intermittently, causing python to stall (and the db to freeze) for certain tables. Do you know what this may depend upon?