Project

General

Profile

Bug #3786

Wt: fatal error: error executing prepared statement Lost connection to MySQL server during query

Added by Drus Kor almost 8 years ago. Updated over 7 years ago.

Status:
InProgress
Priority:
Normal
Assignee:
Target version:
Start date:
02/05/2015
Due date:
% Done:

0%

Estimated time:

Description

after

Dbo::FixedSqlConnectionPool *pool = new Dbo::FixedSqlConnectionPool( new Dbo::backend::MySQL( "db", "login, "pass\" ) );

and

Dbo::Session session_;

session_.setConnectionPool( *pool ) ;

All works fine, but after some time, I get an error:

"Wt: fatal error: error executing prepared statement Lost connection to MySQL server during query"

How can I check that the connection is active?

or how to make it automatically re-created?

thx =)


Files

MySQL.C (32.2 KB) MySQL.C Drus Kor, 02/14/2015 12:59 PM
MySQL.C (31.4 KB) MySQL.C Drus Kor, 02/17/2015 05:53 PM

Also available in: Atom PDF