* 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.
This commit is contained in:
Adam Frisby
2007-05-25 08:21:16 +00:00
parent 8c536efeda
commit b496d01c12
15 changed files with 186 additions and 127 deletions

View File

@@ -25,11 +25,11 @@ namespace OpenGrid.Framework.Data.MySQL
/// <param name="username">The username logging into the database</param>
/// <param name="password">The password for the user logging in</param>
/// <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>
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();