- import sqlalchemy as db
- # import mysqlclient
- # mysql+pymysql://<username>:<password>@<host>/<dbname>[?<options>]
-
- engine = db.create_engine('mysql+pymysql://registro_escolar:mwgzHRXTPrS3JEnd@localhost/registro_escolar')
- connection = engine.connect()
- metadata = db.MetaData()
|