Permalink
Browse files

Added database port

  • Loading branch information...
1 parent f11e681 commit fa13d948f259c2823fadcaa91dcb3b7dfbcf6cac @Zamirathe Zamirathe committed Apr 10, 2015
Showing with 12 additions and 3 deletions.
  1. +10 −1 UconomyBasicShop/DatabaseMgr.cs
  2. +2 −2 UconomyBasicShop/Properties/AssemblyInfo.cs
@@ -60,7 +60,16 @@ private MySqlConnection createConnection()
MySqlConnection mySqlConnection = null;
try
{
- mySqlConnection = new MySqlConnection(string.Format("SERVER={0};DATABASE={1};UID={2};PASSWORD={3};", new object[] { Uconomy.Instance.Configuration.DatabaseAddress, Uconomy.Instance.Configuration.DatabaseName, Uconomy.Instance.Configuration.DatabaseUsername, Uconomy.Instance.Configuration.DatabasePassword }));
+ if (Uconomy.Instance.Configuration.DatabasePort == 0)
+ {
+ Uconomy.Instance.Configuration.DatabasePort = 3306;
+ }
+ mySqlConnection = new MySqlConnection(string.Format("SERVER={0};DATABASE={1};UID={2};PASSWORD={3};PORT={4};", new object[] {
+ Uconomy.Instance.Configuration.DatabaseAddress,
+ Uconomy.Instance.Configuration.DatabaseName,
+ Uconomy.Instance.Configuration.DatabaseUsername,
+ Uconomy.Instance.Configuration.DatabasePassword,
+ Uconomy.Instance.Configuration.DatabasePort}));
}
catch (Exception exception)
{
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.1.9")]
-[assembly: AssemblyFileVersion("1.0.1.9")]
+[assembly: AssemblyVersion("1.0.1.10")]
+[assembly: AssemblyFileVersion("1.0.1.10")]

0 comments on commit fa13d94

Please sign in to comment.