No Description

connect.py 402B

123456789101112
  1. import sqlalchemy as db
  2. # import mysqlclient
  3. # mysql+pymysql://<username>:<password>@<host>/<dbname>[?<options>]
  4. # conneccion de corrada
  5. # engine = db.create_engine('mysql+pymysql://registro_escolar:mwgzHRXTPrS3JEnd@localhost/registro_escolar')
  6. # coneccion de oniel
  7. engine = db.create_engine('mysql+pymysql://root:@0.0.0.0/registro_escolar_1')
  8. connection = engine.connect()
  9. metadata = db.MetaData()