Skip to content

Call db transaction,mysql gone away thrown #113

@ecpanda

Description

@ecpanda

[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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions