Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

TShock DB Editor


sensownyyGracz

Rekomendowane odpowiedzi

Opublikowano

Witam mam problem z TShock DB Editor jak wpisuje cale dane z hostingu (MySQL)

 

 

--------------------------------------------------------

Wyskakuje takze to Table 'Mojhost_DB.itembans' doesn't exist.

--------------------------------------------------------

 

 

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.
 
************** Exception Text **************
MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'ni932122_2_DB.Itembans' doesn't exist
   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId)
   at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int32& insertedId)
   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId)
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
   at TShockDBEditor.TShockDBEditor.LoadDB()
   at TShockDBEditor.TShockDBEditor.LoadMySqlDatabase(String hostname, String port, String database, String dbusername, String dbpassword)
   at TShockDBEditor.TShockDBEditor.btn_connect_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 
 
************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
TShockDBEditor
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Gabriel/Desktop/TShockDBEditor.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34250 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.36337 built by: FX452RTMLDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34239 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
MySql.Data
    Assembly Version: 6.3.6.0
    Win32 Version: 6.3.6.0
    CodeBase: file:///C:/Users/Gabriel/Desktop/MySql.Data.DLL
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Transactions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34281 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
 
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
 
For example:
 
<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>
 
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 
 
Opublikowano

TShock DB Editor to narzędzie do baz SQLite, jeśli dobrze pamiętam.

Jeśli używasz MySQL, musisz użyć edytora MySQL: z darmowych dominuje phpMyAdmin, a z płatnych Navicat/Navicat for MySQL.

Opublikowano

TShock DB Editor to narzędzie do baz SQLite, jeśli dobrze pamiętam.

Jeśli używasz MySQL, musisz użyć edytora MySQL: z darmowych dominuje phpMyAdmin, a z płatnych Navicat/Navicat for MySQL.

Uzywam phpMyAdmin lecz nie moze sie to polaczyc wpisuje cale dane 

Opublikowano

Jaki jest błąd?

Jako host wpisz IP serwera, a login i hasło takie same jak w config.json

W sensie gdzie moge znalesc login i haslo?

PS: dalem na Host 31.214.161.188 Login dalem takie same jak i haslo lecz

to nadal nie dziala ten blad. :(:

 

Pisze ogolnie ten problem: Unable to connect to any of the specified MySQL hosts.

 

 

 

See the end of this message for details on invoking 

just-in-time (JIT) debugging instead of this dialog box.
 
************** Exception Text **************
MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. ---> System.Exception: Call to GetHostEntry failed after 00:00:00 while querying for hostname '31.214.161.188': SocketErrorCode=HostNotFound, ErrorCode=11001, NativeErrorCode=11001. ---> System.Net.Sockets.SocketException: No such host is known
   at System.Net.Dns.GetAddrInfo(String name)
   at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
   at System.Net.Dns.GetHostEntry(String hostNameOrAddress)
   at MySql.Data.Common.StreamCreator.GetDnsHostEntry(String hostname)
   --- End of inner exception stack trace ---
   at MySql.Data.Common.StreamCreator.GetDnsHostEntry(String hostname)
   at MySql.Data.Common.StreamCreator.GetStream(UInt32 timeout)
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.Driver.Open()
   at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at TShockDBEditor.TShockDBEditor.LoadMySqlDatabase(String hostname, String port, String database, String dbusername, String dbpassword)
   at TShockDBEditor.TShockDBEditor.btn_connect_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 
 
************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
TShockDBEditor
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Gabriel/Desktop/TShockDBEditor.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34250 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.36337 built by: FX452RTMLDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34239 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
MySql.Data
    Assembly Version: 6.3.6.0
    Win32 Version: 6.3.6.0
    CodeBase: file:///C:/Users/Gabriel/Desktop/MySql.Data.DLL
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Transactions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34281 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
 
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
 
For example:
 
<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>
 
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Opublikowano

Daj link, wyślij w zipie albo chociaż pokaż screena z jakiego DB Editora korzystasz.
Jest jeden który działa na REST API i jeden który nie jest aktualizowany od Terrari 1.2.
Jeśli rzeczywiście korzystasz z MySQL (w config.json: "StorageType": "mysql", "MySqlHost": "localhost:3306") to łącząc się do 31.214.161.188:3306 powinieneś mieć PRZYNAJMNIEJ Access Denied (zakładające że nie masz Firewalla).

Jeśli MySqlHost nie jest lokalny tylko jakaś zewnętrzna baza to rzeczywiście 31.214.161.188 nie podziała musisz wpisac to co wcześniej.

W pierwszym błędzie który wysłałeś połączenie z bazą nastąpiło, ale program zaczął szukac tabeli "Mojhost_DB.itembans" której nie znalazł i się wywalił. Baza powinna działać jeśli wpiszesz te dane np. w Navicat. Problem jest z programem który używasz, a nie z bazą. Musisz znaleźć jakiś inny klient MySQL.

Opublikowano

Daj link, wyślij w zipie albo chociaż pokaż screena z jakiego DB Editora korzystasz.

Jest jeden który działa na REST API i jeden który nie jest aktualizowany od Terrari 1.2.

Jeśli rzeczywiście korzystasz z MySQL (w config.json: "StorageType": "mysql", "MySqlHost": "localhost:3306") to łącząc się do 31.214.161.188:3306 powinieneś mieć PRZYNAJMNIEJ Access Denied (zakładające że nie masz Firewalla).

Jeśli MySqlHost nie jest lokalny tylko jakaś zewnętrzna baza to rzeczywiście 31.214.161.188 nie podziała musisz wpisac to co wcześniej.

W pierwszym błędzie który wysłałeś połączenie z bazą nastąpiło, ale program zaczął szukac tabeli "Mojhost_DB.itembans" której nie znalazł i się wywalił. Baza powinna działać jeśli wpiszesz te dane np. w Navicat. Problem jest z programem który używasz, a nie z bazą. Musisz znaleźć jakiś inny klient MySQL.

Ja go hostuje poprzez hosting serwera. a nie przez router czy cos tam. wiec raczej musi byc 31.214.161.188

tutaj masz tego zipa:http://www38.zippyshare.com/v/XiIXWSWI/file.html

Dziekuje ze mi pomagasz :3

 

 

 

 

Opublikowano

Okej, powód okazał się być banalny. Musiałeś źle podać Database Name. Podałeś Mojhost_DB, a musi to być to samo co "MySqlDbName" w config.json

Opublikowano

Okej, powód okazał się być banalny. Musiałeś źle podać Database Name. Podałeś Mojhost_DB, a musi to być to samo co "MySqlDbName" w config.json

Ale jest taki problem ze nic mi nie pisze w config.json o tym ;/

Opublikowano

To niemożliwe, bez tego nie działałby serwer.

s2tUQJk.png

Tak lecz jest napisane mi to "StorageType": "mysql",

"MySqlHost": "localhost:3306"

"MysqlDbName": ""

"MySqlUsername": ""

"MySqlPassword": ""

 
Opublikowano

Z takimi ustawieniami nawet nie włącza serwera - przed chwilą sprawdziłem.

Jest to VPS czy jakiś hosting typu maxcraft?

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...