aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-05-25 08:21:16 +0000
committerAdam Frisby2007-05-25 08:21:16 +0000
commitb496d01c12c7ce74779bdd8cb07b070d47702d2d (patch)
tree694b885f62e4abfd44a10c943fc7a730ccf8d419 /OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs
parentSet default MySQL port to the standard. (diff)
downloadopensim-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 'OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs')
-rw-r--r--OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs
index 0741272..df681eb 100644
--- a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs
+++ b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs
@@ -12,7 +12,15 @@ namespace OpenGrid.Framework.Data.MySQL
12 12
13 public void Initialise() 13 public void Initialise()
14 { 14 {
15 database = new MySQLManager("host", "database", "user", "password", "false"); 15 IniFile GridDataMySqlFile = new IniFile("mysql_connection.ini");
16 string settingHostname = GridDataMySqlFile.ParseFileReadValue("hostname");
17 string settingDatabase = GridDataMySqlFile.ParseFileReadValue("database");
18 string settingUsername = GridDataMySqlFile.ParseFileReadValue("username");
19 string settingPassword = GridDataMySqlFile.ParseFileReadValue("password");
20 string settingPooling = GridDataMySqlFile.ParseFileReadValue("pooling");
21 string settingPort = GridDataMySqlFile.ParseFileReadValue("port");
22
23 database = new MySQLManager(settingHostname, settingDatabase, settingUsername, settingPassword, settingPooling, settingPort);
16 } 24 }
17 25
18 public UserProfileData getUserByName(string name) 26 public UserProfileData getUserByName(string name)