MySQL database connection error.
Created at 18 Feb 2023, 16:29
CT
MySQL database connection error.
18 Feb 2023, 16:29
Hi,
I have a cBOT that connects to a MySQL database.
I use the NuGet package "MySql.Data.MySqlClient" in Visual Studio for database connectivity. Also use the NuGet package "cTrader.Automate". I am using Visual Studio 2022.
I am getting the following error, when the BOT tries to connect to MySQL database.
"The type initializer for 'MySql.Data.MySqlClient.Replication.ReplicationManager' threw an exception".
The MySQL database connectivity worked fine, prior to cBOT migration of .NET 6.0, where I used Visual Studio 2019.
Any help to resolve the issue is much appreciated.
Best regards
Francis
louislee736
13 Mar 2024, 08:57 ( Updated at: 14 Mar 2024, 01:08 )
Hello, the error message you're encountering indicates that there is an exception thrown during the initialization of the ReplicationManager class within the MySql.Data.MySqlClient library. I think you should check Database Compatibility. Confirm that your MySQL database is compatible with the version of the MySql.Data.MySqlClient library you're using geometry dash scratch. It's possible that there are incompatibilities between the library and the database version. Consider updating your MySQL database or using a compatible version of the library.
@louislee736