From b496d01c12c7ce74779bdd8cb07b070d47702d2d Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Fri, 25 May 2007 08:21:16 +0000 Subject: * 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. --- OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLManager.cs') 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 /// The username logging into the database /// The password for the user logging in /// Whether to use connection pooling or not, can be one of the following: 'yes', 'true', 'no' or 'false', if unsure use 'false'. - public MySQLManager(string hostname, string database, string username, string password, string cpooling) + public MySQLManager(string hostname, string database, string username, string password, string cpooling, string port) { try { - string connectionString = "Server=" + hostname + ";Port=3306;Database=" + database + ";User ID=" + username + ";Password=" + password + ";Pooling=" + cpooling + ";"; + string connectionString = "Server=" + hostname + ";Port=" + port + ";Database=" + database + ";User ID=" + username + ";Password=" + password + ";Pooling=" + cpooling + ";"; dbcon = new MySqlConnection(connectionString); dbcon.Open(); -- cgit v1.1