cxhy 4 meses atrás
pai
commit
6c44a9b781
1 arquivos alterados com 12 adições e 3 exclusões
  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)