Browse Source

update coneccion a server localhost

comenté la conneccion escrita, y añadi la mia(oniel) para cuando lo corra en mi PC.
Oniel Méndez Nieves 4 years ago
parent
commit
3c43c1e8d1
2 changed files with 6 additions and 1 deletions
  1. 6
    1
      connect.py
  2. BIN
      connect.pyc

+ 6
- 1
connect.py View File

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

BIN
connect.pyc View File