I have workers that works on php (yii2) under supervisord.
I using persistant connection for MySQL DB.
'attributes'=>[
PDO::ATTR_PERSISTENT => true
]
But it refused after 8 hours.
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away.
I think that it already was realised.
How I can automatically reopen persistent connection?