I am using SqlAlchemy to connect to a MySQL database instance, and trying to look at the tables by doing the following:
engine = create_engine('mysql+pymysql://root:@localhost:3306', echo=True)
engine.execute("USE mydb;")
q = engine.execute("show tables;")
our_tables = q.fetchall()
print(our_tables)
When I try and print the tables this way it shows them as blank. However when I inspect the database, everything looks good for those tables.
What can I do to view the tables correctly?