Closed donhardman closed 2 years ago
Adding option MYSQL_OPT_RECONNECT does not give magic possibility to auto recconnect to mysql in you code.
You need to call mysql_ping that will check in case this option connection and do the job.
Cool, but, also, stop using gearmand as a persistent queue. Write a worker storage system so you don't have this SPOF/bottleneck. ;)
Adding option MYSQL_OPT_RECONNECT does not give magic possibility to auto recconnect to mysql in you code.
You need to call mysql_ping that will check in case this option connection and do the job.