fastD icon indicating copy to clipboard operation
fastD copied to clipboard

Call db transaction,mysql gone away thrown

Open ecpanda opened this issue 7 years ago • 1 comments

[2018-10-24 17:29:03] cmsboot.ERROR: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away {"msg":"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away","code":"HY000","file":"/var/www/cmsboot-api/app/src/Lib/Model.php","line":73,"trace":["#0 /var/www/cmsboot-api/app/src/Lib/Model.php(73): PDO->beginTransaction()",

$this->db->pdo->beginTransaction();

Maybe, it is necessary to add transaction methods into the fastd database class. So, it is possible to reconnect to the mysql automatically.

ecpanda avatar Oct 24 '18 09:10 ecpanda

same here

hunteryun avatar Jan 03 '20 12:01 hunteryun