1
myyou 2016 年 4 月 22 日
你用 db.session.close()了没?
|
2
liyj144 2016 年 4 月 22 日
show variables like "%max_connections%"; 查看最大连接数,我怀疑是 mysql 配置的最大连接数太小, 然后 show processlist; 看看连接情况。
|
3
larkifly OP @myyou 没有,如果每次都 db.session.close(),那是不是要每次使用的时候,都得 db = SQLAlchemy(app)初始化一下连接???
|