Всем добрый день.
Cтолкнулся с проблемой при созданий базой данных MySql.
Подскажите, пожалуйста, что не так делаю.
Выводит ошибку:
Подключение к MySQL успешно.
Подключение не установлено, т.к. конечный компьютер отверг запрос на подключение. 111.111.1.111:3306
Подключение не установлено, т.к. конечный компьютер отверг запрос на подключение. 111.111.1.111:3306
Подключение не установлено, т.к. конечный компьютер отверг запрос на подключение. 111.111.1.111
One or more errors occurred. (Подключение не установлено, т.к. конечный компьютер отверг запрос на подключение. 111.111.1.111:3306)
One or more errors occurred. (Подключение не установлено, т.к. конечный компьютер отверг запрос на подключение. 111.111.1.111:3306)
One or more errors occurred. (Подключение не установлено, т.к. конечный компьютер отверг запрос на подключение. 111.111.1.111:3306)
Could not load file or assembly 'C:\RAGEMP\server-files\dotnet\resources\Server\Debug\netcoreapp3.1\MySql.Data.resources.dll'. Не удается найти указанный файл.
Could not load file or assembly 'C:\RAGEMP\server-files\dotnet\resources\Server\Debug\netcoreapp3.1\MySql.Data.resources.dll'. Не удается найти указанный файл.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.
---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (10061): Подключение не установлено, т.к. конечный компьютер отверг запрос на подключение. 111.111.1.111:3306
at void System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source)
at void System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at bool System.Net.Sockets.Socket.DoMultipleAddressConnectCallback(object result, MultipleAddressConnectAsyncResult context)
at void System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source)
at bool System.Net.Sockets.Socket.DoMultipleAddressConnectCallback(object result, MultipleAddressConnectAsyncResult context)
at void System.Net.Sockets.Socket.MultipleAddressConnectCallback(IAsyncResult result)
at void System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source)
at void System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at void System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
at Task System.Net.Sockets.TcpClient.ConnectAsync(string host, int port)+(IAsyncResult asyncResult) => { } [1]
at void System.Threading.Tasks.TaskFactory<TResult>.FromAsyncCoreLogic(IAsyncResult iar, Func<IAsyncResult, TResult> endFunction, Action<IAsyncResult> endAction, Task<TResult> promise, bool requiresSynchronization)
at MySql.Data.MySqlClient.NativeDriver.<>c.<OpenAsync>b__38_0(Exception ex)
at System.AggregateException.Handle(Func`2 predicate)
at MySql.Data.MySqlClient.NativeDriver.OpenAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.Driver.OpenAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.Driver.CreateAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.Driver.CreateAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnectionAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnectionAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlPool.TryToGetDriverAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlPool.GetConnectionAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlConnection.OpenAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlConnection.Open()
at MySQL.QueryRead(MySqlCommand command) in C:\RAGEMP\server-files\core\Server\Server\MySQL\MySQL.cs:line 52
Object reference not set to an instance of an object.
Exception has been thrown by the target of an invocation.
-> Error starting 'Server'
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.NullReferenceException: Object reference not set to an instance of an object.
at void Events.OnResourceStart() in C:/RAGEMP/server-files/core/Server/Server/Events.cs:line 23
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at GTANetworkInternals.ScriptingEngine.InvokeVoidMethod(String method, Object[] args)
at GTANetworkInternals.EventParser.Parse(Event _event, Object[] arguments)
at GTANetworkInternals.EventCollection.<>c__DisplayClass4_0.<ParseEx>b__1(EventParser x)
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at GTANetworkInternals.EventCollection.ParseEx(Event _event, ScriptingEngine engine, Object[] arguments)
at GTANetworkInternals.EventHandler.ParseEx(Event _event, ScriptingEngine engine, Object[] arguments)
at GTANetworkInternals.GameServer.<>c.<StartResource>b__67_0(ScriptingEngine r)
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at GTANetworkInternals.GameServer.StartResource(String resourceName, String parent)
Started! Waiting for connections..
[DONE] Started resource transfer server at 22006 port.
[DONE] Client-side packages weight: 0.003815 MB (uncompressed: 0.007862 MB).
[INFO] Initializing networking...
[DONE] Networking has been started: (IPv4-only) at 127.0.0.1:22005
[DONE] The server is ready to accept connections.
Cтолкнулся с проблемой при созданий базой данных MySql.
Подскажите, пожалуйста, что не так делаю.
Выводит ошибку:
Подключение к MySQL успешно.
Подключение не установлено, т.к. конечный компьютер отверг запрос на подключение. 111.111.1.111:3306
Подключение не установлено, т.к. конечный компьютер отверг запрос на подключение. 111.111.1.111:3306
Подключение не установлено, т.к. конечный компьютер отверг запрос на подключение. 111.111.1.111
One or more errors occurred. (Подключение не установлено, т.к. конечный компьютер отверг запрос на подключение. 111.111.1.111:3306)
One or more errors occurred. (Подключение не установлено, т.к. конечный компьютер отверг запрос на подключение. 111.111.1.111:3306)
One or more errors occurred. (Подключение не установлено, т.к. конечный компьютер отверг запрос на подключение. 111.111.1.111:3306)
Could not load file or assembly 'C:\RAGEMP\server-files\dotnet\resources\Server\Debug\netcoreapp3.1\MySql.Data.resources.dll'. Не удается найти указанный файл.
Could not load file or assembly 'C:\RAGEMP\server-files\dotnet\resources\Server\Debug\netcoreapp3.1\MySql.Data.resources.dll'. Не удается найти указанный файл.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
Unable to connect to any of the specified MySQL hosts.
MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.
---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (10061): Подключение не установлено, т.к. конечный компьютер отверг запрос на подключение. 111.111.1.111:3306
at void System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source)
at void System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at bool System.Net.Sockets.Socket.DoMultipleAddressConnectCallback(object result, MultipleAddressConnectAsyncResult context)
at void System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source)
at bool System.Net.Sockets.Socket.DoMultipleAddressConnectCallback(object result, MultipleAddressConnectAsyncResult context)
at void System.Net.Sockets.Socket.MultipleAddressConnectCallback(IAsyncResult result)
at void System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source)
at void System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at void System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
at Task System.Net.Sockets.TcpClient.ConnectAsync(string host, int port)+(IAsyncResult asyncResult) => { } [1]
at void System.Threading.Tasks.TaskFactory<TResult>.FromAsyncCoreLogic(IAsyncResult iar, Func<IAsyncResult, TResult> endFunction, Action<IAsyncResult> endAction, Task<TResult> promise, bool requiresSynchronization)
at MySql.Data.MySqlClient.NativeDriver.<>c.<OpenAsync>b__38_0(Exception ex)
at System.AggregateException.Handle(Func`2 predicate)
at MySql.Data.MySqlClient.NativeDriver.OpenAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.Driver.OpenAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.Driver.CreateAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.Driver.CreateAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnectionAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnectionAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlPool.TryToGetDriverAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlPool.GetConnectionAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlConnection.OpenAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlConnection.Open()
at MySQL.QueryRead(MySqlCommand command) in C:\RAGEMP\server-files\core\Server\Server\MySQL\MySQL.cs:line 52
Object reference not set to an instance of an object.
Exception has been thrown by the target of an invocation.
-> Error starting 'Server'
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.NullReferenceException: Object reference not set to an instance of an object.
at void Events.OnResourceStart() in C:/RAGEMP/server-files/core/Server/Server/Events.cs:line 23
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at GTANetworkInternals.ScriptingEngine.InvokeVoidMethod(String method, Object[] args)
at GTANetworkInternals.EventParser.Parse(Event _event, Object[] arguments)
at GTANetworkInternals.EventCollection.<>c__DisplayClass4_0.<ParseEx>b__1(EventParser x)
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at GTANetworkInternals.EventCollection.ParseEx(Event _event, ScriptingEngine engine, Object[] arguments)
at GTANetworkInternals.EventHandler.ParseEx(Event _event, ScriptingEngine engine, Object[] arguments)
at GTANetworkInternals.GameServer.<>c.<StartResource>b__67_0(ScriptingEngine r)
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at GTANetworkInternals.GameServer.StartResource(String resourceName, String parent)
Started! Waiting for connections..
[DONE] Started resource transfer server at 22006 port.
[DONE] Client-side packages weight: 0.003815 MB (uncompressed: 0.007862 MB).
[INFO] Initializing networking...
[DONE] Networking has been started: (IPv4-only) at 127.0.0.1:22005
[DONE] The server is ready to accept connections.
Вложения
Последнее редактирование: