I am aware that it is not recommended, but I have to do it this way.
Is there a method to directly connect to MySQL when developing with Unity targeting Android? I installed the MySQL connector using Mysql.Data.dll
and NuGet, and in the Unity editor, it connects to MySQL and successfully retrieves data. However, when I build it for Android, I get the following error:
Error Unity Error opening MySQL connection: System.TypeInitializationException: The type initializer for 'MySql.Data.MySqlClient.Replication.ReplicationManager' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MySql.Data.MySqlClient.MySqlConfiguration' threw an exception. ---> System.NotSupportedException: System.Configuration.ConfigurationManager::GetSection
Is there any solution for this? Or is it impossible?