diff options
author | Adam Frisby | 2007-05-25 08:21:16 +0000 |
---|---|---|
committer | Adam Frisby | 2007-05-25 08:21:16 +0000 |
commit | b496d01c12c7ce74779bdd8cb07b070d47702d2d (patch) | |
tree | 694b885f62e4abfd44a10c943fc7a730ccf8d419 /OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLManager.cs | |
parent | Set default MySQL port to the standard. (diff) | |
download | opensim-SC_OLD-b496d01c12c7ce74779bdd8cb07b070d47702d2d.zip opensim-SC_OLD-b496d01c12c7ce74779bdd8cb07b070d47702d2d.tar.gz opensim-SC_OLD-b496d01c12c7ce74779bdd8cb07b070d47702d2d.tar.bz2 opensim-SC_OLD-b496d01c12c7ce74779bdd8cb07b070d47702d2d.tar.xz |
* Added new mysql_connection.ini file which contains configuration options for the database connection used by OGS.
* Added IniFile class (code imported from public example) to Framework.Data - may be worth moving to Util.
* Ran prebuild, updated solution files.
Diffstat (limited to '')
-rw-r--r-- | OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLManager.cs b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLManager.cs index 670d3c9..ea7e2ac 100644 --- a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLManager.cs +++ b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLManager.cs | |||
@@ -25,11 +25,11 @@ namespace OpenGrid.Framework.Data.MySQL | |||
25 | /// <param name="username">The username logging into the database</param> | 25 | /// <param name="username">The username logging into the database</param> |
26 | /// <param name="password">The password for the user logging in</param> | 26 | /// <param name="password">The password for the user logging in</param> |
27 | /// <param name="cpooling">Whether to use connection pooling or not, can be one of the following: 'yes', 'true', 'no' or 'false', if unsure use 'false'.</param> | 27 | /// <param name="cpooling">Whether to use connection pooling or not, can be one of the following: 'yes', 'true', 'no' or 'false', if unsure use 'false'.</param> |
28 | public MySQLManager(string hostname, string database, string username, string password, string cpooling) | 28 | public MySQLManager(string hostname, string database, string username, string password, string cpooling, string port) |
29 | { | 29 | { |
30 | try | 30 | try |
31 | { | 31 | { |
32 | string connectionString = "Server=" + hostname + ";Port=3306;Database=" + database + ";User ID=" + username + ";Password=" + password + ";Pooling=" + cpooling + ";"; | 32 | string connectionString = "Server=" + hostname + ";Port=" + port + ";Database=" + database + ";User ID=" + username + ";Password=" + password + ";Pooling=" + cpooling + ";"; |
33 | dbcon = new MySqlConnection(connectionString); | 33 | dbcon = new MySqlConnection(connectionString); |
34 | 34 | ||
35 | dbcon.Open(); | 35 | dbcon.Open(); |