add error handling
parent
d74469f84e
commit
0e6e7bbb8e
|
@ -37,10 +37,17 @@ namespace OpenSim.Modules.DataValue.Storage
|
|||
m_timer.Elapsed += mysqlping;
|
||||
m_timer.Start();
|
||||
|
||||
try
|
||||
{
|
||||
m_mySQLClient = new MySqlConnection(m_connectionString);
|
||||
m_mySQLClient.Open();
|
||||
createEmptyTable();
|
||||
}
|
||||
catch(Exception _error)
|
||||
{
|
||||
m_log.Error("[MySQL] " + m_connectionString + " : " + _error.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void mysqlping(object sender, ElapsedEventArgs e)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue