[sqlalchemy] Re: Reconnect while loosing Mysql connection

2012-06-12 Thread Pavel Skvazh
Too obvious or too complicated? On Monday, June 4, 2012 7:10:14 PM UTC+4, Pavel Skvazh wrote: Hi, everyone! Due to an obviously lacking skills of an admin, the connection with Mysql sever is really spotty. And I keep getting OperationalError 'Can't connect to MySQL server' error every

Re: [sqlalchemy] Re: Reconnect while loosing Mysql connection

2012-06-12 Thread Michael Bayer
turn off pooling is the quickest, use NullPool. otherwise set pool_recycle very low, or add a ping event. Docs for all of this at: http://docs.sqlalchemy.org/en/rel_0_7/core/pooling.html On Jun 12, 2012, at 2:07 PM, Pavel Skvazh wrote: Too obvious or too complicated? On Monday, June 4,