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(':');
|
var hostport = Config.MySqlHost.Split(':');
|
||||||
DB = new MySqlConnection();
|
DB = new MySqlConnection();
|
||||||
DB.ConnectionString =
|
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[0],
|
||||||
hostport.Length > 1 ? hostport[1] : "3306",
|
hostport.Length > 1 ? hostport[1] : "3306",
|
||||||
Config.MySqlDbName,
|
Config.MySqlDbName,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue