Commit 822daa45 by ‘chizw’

数据库超时设置

1 parent 59eb9ca4
...@@ -29,7 +29,9 @@ class MysqlHelper: ...@@ -29,7 +29,9 @@ class MysqlHelper:
port=self.port, port=self.port,
user=self.user, user=self.user,
password=self.password, password=self.password,
database=self.db, charset='utf8') database=self.db, charset='utf8',
write_timeout=999999)
self.cursor = self.con.cursor() self.cursor = self.con.cursor()
self._instance = MysqlHelper self._instance = MysqlHelper
except Exception as e: except Exception as e:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!