mirror of
https://github.com/opensim/opensim.git
synced 2026-08-02 14:56:19 +08:00
in theory, let you pass the mysql connection string into the
mysql manager class. This could use some testing of inventory and asset services. Once this is prooved out, I'll do it for mssql as well.
This commit is contained in:
@@ -64,11 +64,23 @@ namespace OpenSim.Data.MySQL
|
||||
/// <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,
|
||||
string port)
|
||||
{
|
||||
string s = "Server=" + hostname + ";Port=" + port + ";Database=" + database + ";User ID=" +
|
||||
username + ";Password=" + password + ";Pooling=" + cpooling + ";";
|
||||
|
||||
Initialise(s);
|
||||
}
|
||||
|
||||
public MySQLManager(String connect)
|
||||
{
|
||||
Initialise(connect);
|
||||
}
|
||||
|
||||
public void Initialise(String connect)
|
||||
{
|
||||
try
|
||||
{
|
||||
connectionString = "Server=" + hostname + ";Port=" + port + ";Database=" + database + ";User ID=" +
|
||||
username + ";Password=" + password + ";Pooling=" + cpooling + ";";
|
||||
connectionString = connect;
|
||||
dbcon = new MySqlConnection(connectionString);
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user