diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 276715ed..be8a4eb4 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -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,