mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
* 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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user