My T-Shock 4.3.7 Server Closed by itself.

Discussion in 'Help and Support' started by slimshady629, Aug 3, 2015.

  1. slimshady629

    slimshady629 Level 1

    Joined:
    Jul 26, 2015
    Messages:
    10
    In fact if i setup the config "StorageType" as sqlite,everything is ok.

    But cause i want make 2 servers,use 2 servers 2 config and one in per-hardmode,one in hardmode,but use same date base,so i have setup StorageType as MySql.

    I have setup everything with Mysql,but when i start TerrariaServer,the CMD window just blink 1 second and colse....

    Could some1 help me?
     
  2. Zaicon

    Zaicon Spam Cleaner 9000
    TShock Mod Plugin Developer

    Joined:
    Feb 15, 2014
    Messages:
    800
    Check out your server log in ServerLog.txt.

    A common issue is that your MySQL server isn't "online", which would cause this particular issue.
     
  3. slimshady629

    slimshady629 Level 1

    Joined:
    Jul 26, 2015
    Messages:
    10
    thx for your help,i check the log and it show me this.

    2015-08-06 08:50:14 - TShock: ERROR: Fatal Startup Exception
    2015-08-06 08:50:14 - TShock: ERROR: MySql.Data.MySqlClient.MySqlException (0x80004005): Authentication with old password no longer supported, use 4.1 style passwords.
    MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.Authenticate(Boolean reset)
    MySql.Data.MySqlClient.NativeDriver.Authenticate(String authMethod, Boolean reset)
    MySql.Data.MySqlClient.NativeDriver.Open()
    MySql.Data.MySqlClient.Driver.Open()
    MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
    MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
    MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
    MySql.Data.MySqlClient.MySqlPool.GetConnection()
    MySql.Data.MySqlClient.MySqlConnection.Open()
    TShockAPI.DB.DbExt.QueryReader(IDbConnection olddb, String query, Object[] args)
    TShockAPI.DB.SqlTableCreator.GetColumns(SqlTable table)
    TShockAPI.DB.SqlTableCreator.EnsureTableStructure(SqlTable table)
    TShockAPI.DB.BanManager..ctor(IDbConnection db)
    TShockAPI.TShock.Initialize()
     
  4. slimshady629

    slimshady629 Level 1

    Joined:
    Jul 26, 2015
    Messages:
    10
    So...Look like it cause MySql is 5.1,and use another way to auth password and tshock doesnt supported?
     
  5. Tygra

    Tygra Level 5

    Joined:
    May 9, 2014
    Messages:
    108
    Use xampp's built in mysql server. It will work with that. After install open up localhost in a browser and set up passwords in the security menu on the left. There is a full tutorial here on the forum to help you set up xampp.
     
  6. slimshady629

    slimshady629 Level 1

    Joined:
    Jul 26, 2015
    Messages:
    10
    the porblem is my tshock.exe not run at localhost,and DB neither.

    My tshock run in Server A without mysql,so i rent another Server B for mysql DB,the porblem is that Server A cant connet to Server B for mysql....