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?
这就是解决方案: http : //php.net/manual/en/function.mysql-ping.php
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.