Merge pull request #298 from secondfry/patch-1

MySQL connection fix on Linux
This commit is contained in:
Will 2011-09-26 13:46:48 -07:00
commit 4c95657211

View file

@ -142,7 +142,7 @@ namespace TShockAPI
var hostport = Config.MySqlHost.Split(':');
DB = new MySqlConnection();
DB.ConnectionString =
String.Format("Server='{0}'; Port='{1}'; Database='{2}'; Uid='{3}'; Pwd='{4}';",
String.Format("Server={0}; Port={1}; Database={2}; Uid={3}; Pwd={4};",
hostport[0],
hostport.Length > 1 ? hostport[1] : "3306",
Config.MySqlDbName,