简体   繁体   中英

How do I keep ezSQL connection alive?

I am using ezSQL in a script that is running in a loop for days, possibly weeks. The connection is defined and created outside of the loop. However when a long time passes I get this MySQL error: MySQL server has gone away

I guess mysql has disconnected the ezSQL connection?

What I wonder... does ezSQL auto-reconnect, because I can't find any reconnect function? How do you propose I check the connection/health of ezSQL?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM