Search the Community
Showing results for tags 'mysql error'.
-
Hello, i want connect my db with my server but that error shows in console. How i can solve it? https://i.imgur.com/g9OiaFF.png https://i.imgur.com/keAgOVK.png
- 1 reply
-
- csharp
- mysql error
-
(and 1 more)
Tagged with:
-
Moin, Ich kriege diesen Fehler: mysql:134 Error: could not locate file lib/Connection.js Class = require('./lib/Connection'); Jemand eine Idee woran das liegt?
-
- mysql error
- mysql
-
(and 1 more)
Tagged with:
-
Hello! I tried to connect to the DB, but the server threw an error. CS0012: The type 'DbConnection' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. -> MySQL/MySQL.cs:37 When i add a reference I get it: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Option not supported. Parameter name: db at MySql.Data.MySqlClient.MySqlBaseConnectionStringBuilder.GetOption(String key) at MySql.Data.MySqlClient.MySqlConnectionStringBuilder.set_Item(String keyword, Object value) at System.Data.Common.DbConnectionStringBuilder.set_ConnectionString(String value) at MySql.Data.MySqlClient.MySqlBaseConnectionStringBuilder..ctor(String connStr, Boolean isXProtocol) at MySql.Data.MySqlClient.MySqlConnection.set_ConnectionString(String value) at MySQL.MySQL.StartConnection() in MySQL/MySQL.cs:line 35 at VesRP.Setts() in VesRP.cs:line 11 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at GTANetworkInternals.ScriptingEngine.InvokeVoidMethod(String method, Object[] args) at System.Collections.Generic.List`1.ForEach(Action`1 action) at GTANetworkInternals.EventHandler.ParseEx(Event _event, ScriptingEngine engine, Object[] arguments) at System.Collections.Generic.List`1.ForEach(Action`1 action) at GTANetworkInternals.GameServer.StartResource(String resourceName, String parent) MySQL connection code: String SQLConnection = $"SERVER={sql.Host};PASSWORD={sql.Pass};UID={sql.User};DATABASE={sql.DB};"; conn = new MySqlConnection(SQLConnection); try { conn.Open(); NAPI.Util.ConsoleOutput("Connected!"); } catch(Exception ex) { NAPI.Util.ConsoleOutput("Error:"+ex.ToString()); }
-
Hello, can you help me solve a C# MySQL connection problem? The error is as follows: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not load type 'System.Security.PermissionSet' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral , PublicKeyToken=b77a5c561934e089'. At MySql.Data.MySqlClient.MySqlConnection.AssertPermissions() At MySql.Data.MySqlClient.MySqlConnection.Open() At GameMode.ResourceStart() --- End of inner exception stack trace --- At System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) At System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) At GTANetworkInternals.ScriptingEngine.InvokeVoidMethod(String method, Object[] args) At System.Collections.Generic.List`1.ForEach(Action`1 action) At GTANetworkInternals.EventHandler.ParseEx(Event _event, ScriptingEngine engine, Object[] arguments) At System.Collections.Generic.List`1.ForEach(Action`1 action) At GTANetworkInternals.GameServer.StartResource(String resourceName, String parent) I used nuget's mysql data and also referenced bootstrapper but it always gives an error. Thank you!
-
Question #1 (FIXED just compiled resource) Code: https://pastebin.com/dkqQkrA2 Question #2 (FIXED) Code: https://pastebin.com/bwkspwen Fix: Use it: https://msdn.microsoft.com/ru-ru/library/system.threading.timer(v=vs.110).aspx Question #3 (FIXED just compiled resource) Code: https://pastebin.com/LC2LNkf2 Reference