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