public StatsDatabase()
: base(Program.Config.StatsDBEngine, Program.Config.StatsDBConnectionString)
{
// Try and Reconnect
try
{
base.Connect();
GetTablesVersion();
}
catch (Exception)
{
if (Connection != null)
Connection.Dispose();
throw;
}
// Set global packet size with MySql
if (DatabaseEngine == DatabaseEngine.Mysql)
base.Execute("SET GLOBAL max_allowed_packet=51200");
}