|
@@ -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)
|