diff options
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLManager.cs')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLManager.cs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/OpenSim/Data/MySQL/MySQLManager.cs b/OpenSim/Data/MySQL/MySQLManager.cs index 1e7038f..d522b78 100644 --- a/OpenSim/Data/MySQL/MySQLManager.cs +++ b/OpenSim/Data/MySQL/MySQLManager.cs | |||
@@ -65,10 +65,22 @@ namespace OpenSim.Data.MySQL | |||
65 | public MySQLManager(string hostname, string database, string username, string password, string cpooling, | 65 | public MySQLManager(string hostname, string database, string username, string password, string cpooling, |
66 | string port) | 66 | string port) |
67 | { | 67 | { |
68 | string s = "Server=" + hostname + ";Port=" + port + ";Database=" + database + ";User ID=" + | ||
69 | username + ";Password=" + password + ";Pooling=" + cpooling + ";"; | ||
70 | |||
71 | Initialise(s); | ||
72 | } | ||
73 | |||
74 | public MySQLManager(String connect) | ||
75 | { | ||
76 | Initialise(connect); | ||
77 | } | ||
78 | |||
79 | public void Initialise(String connect) | ||
80 | { | ||
68 | try | 81 | try |
69 | { | 82 | { |
70 | connectionString = "Server=" + hostname + ";Port=" + port + ";Database=" + database + ";User ID=" + | 83 | connectionString = connect; |
71 | username + ";Password=" + password + ";Pooling=" + cpooling + ";"; | ||
72 | dbcon = new MySqlConnection(connectionString); | 84 | dbcon = new MySqlConnection(connectionString); |
73 | 85 | ||
74 | try | 86 | try |