From e399141dfb38b7065e68390cc73586846b2206d1 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Mon, 11 Feb 2008 14:09:35 +0000 Subject: * Added some connection debugging --- OpenSim/Framework/Data.MySQL/MySQLManager.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'OpenSim/Framework/Data.MySQL') diff --git a/OpenSim/Framework/Data.MySQL/MySQLManager.cs b/OpenSim/Framework/Data.MySQL/MySQLManager.cs index f70b505..e763bfa 100644 --- a/OpenSim/Framework/Data.MySQL/MySQLManager.cs +++ b/OpenSim/Framework/Data.MySQL/MySQLManager.cs @@ -29,6 +29,7 @@ using System; using System.Collections.Generic; using System.Data; +using System.Data.SqlClient; using System.IO; using System.Reflection; using libsecondlife; @@ -71,7 +72,14 @@ namespace OpenSim.Framework.Data.MySQL username + ";Password=" + password + ";Pooling=" + cpooling + ";"; 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"); } -- cgit v1.1