Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call db transaction,mysql gone away thrown #113

Open
ecpanda opened this issue Oct 24, 2018 · 1 comment
Open

Call db transaction,mysql gone away thrown #113

ecpanda opened this issue Oct 24, 2018 · 1 comment

Comments

@ecpanda
Copy link

ecpanda commented Oct 24, 2018

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

@hunteryun
Copy link

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants