cxhy 6 mēneši atpakaļ
vecāks
revīzija
6c44a9b781
1 mainītis faili ar 12 papildinājumiem un 3 dzēšanām
  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)