cxhy hai 6 meses
pai
achega
6c44a9b781
Modificáronse 1 ficheiros con 12 adicións e 3 borrados
  1. 12 3
      model.py

+ 12 - 3
model.py

@@ -1,11 +1,20 @@
 from peewee import *
 from playhouse.pool import PooledMySQLDatabase
 
-database = PooledMySQLDatabase('yixue_test',
-                               user='yixue_test',
+# database = PooledMySQLDatabase('yixue_test',
+#                                user='yixue_test',
+#                                password='Lai123',
+#                                host='test.db.cxhy.cn',
+#                                port=3307,
+#                                max_connections=32,
+#                                stale_timeout=5,
+#                                timeout=5)
+
+database = PooledMySQLDatabase('yixue',
+                               user='yixue',
                                password='Lai123',
                                host='test.db.cxhy.cn',
-                               port=3307,
+                               port=3306,
                                max_connections=32,
                                stale_timeout=5,
                                timeout=5)