Merge pull request #298 from secondfry/patch-1
MySQL connection fix on Linux
This commit is contained in:
commit
4c95657211
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue