* Added some connection debugging

ThreadPoolClientBranch
lbsa71 2008-02-11 14:09:35 +00:00
parent c927928245
commit e399141dfb
2 changed files with 10 additions and 2 deletions

View File

@ -29,6 +29,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Data.SqlClient;
using System.IO; using System.IO;
using System.Reflection; using System.Reflection;
using libsecondlife; using libsecondlife;
@ -71,7 +72,14 @@ namespace OpenSim.Framework.Data.MySQL
username + ";Password=" + password + ";Pooling=" + cpooling + ";"; username + ";Password=" + password + ";Pooling=" + cpooling + ";";
dbcon = new MySqlConnection(connectionString); dbcon = new MySqlConnection(connectionString);
dbcon.Open(); try
{
dbcon.Open();
}
catch(Exception e)
{
throw new Exception( "Connection error while using connection string ["+connectionString+"]", e );
}
m_log.Info("[MYSQL]: Connection established"); m_log.Info("[MYSQL]: Connection established");
} }