Tnxah
June 2, 2021, 10:10pm
1
06-02 23:35:23.375 12525 12555 D Unity : Sensor : Accelerometer ( 1) ; 0.004786 / 0.00s ; LSM6DSR Accelerometer / STMicro 06-02 23:35:23.387 12525 12555 D Unity : Choreographer available: Enabling VSYNC timing 06-02 23:35:23.408 12525 12555 I Unity : START-------------------------------- 06-02 23:35:23.408 12525 12555 I Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object) 06-02 23:35:23.408 12525 12555 I Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ]) 06-02 23:35:23.408 12525 12555 I Unity : UnityEngine.Logger:Log(LogType, Object) 06-02 23:35:23.408 12525 12555 I Unity : UnityEngine.Debug:Log(Object) 06-02 23:35:23.408 12525 12555 I Unity : UnityEngine.MonoBehaviour:print(Object) 06-02 23:35:23.408 12525 12555 I Unity : DataBaseConnector:Start() (at D:\Program Files\Test 2019.4.16f1\Assets\DataBaseConnector.cs:44) 06-02 23:35:23.408 12525 12555 I Unity : 06-02 23:35:23.408 12525 12555 I Unity : (Filename: D Line: 0) 06-02 23:35:23.408 12525 12555 I Unity : 06-02 23:35:23.442 12525 12555 D Unity : Unable to lookup library path for ‘advapi32’, native render plugin support disabled. 06-02 23:35:23.443 12525 12555 E Unity : Unable to find advapi32 06-02 23:35:23.866 12525 12555 E Unity : IndexOutOfRangeException: Index was outside the bounds of the array. 06-02 23:35:23.866 12525 12555 E Unity : at System.Diagnostics.TraceInternal.get_AppName () [0x0000e] in :0 06-02 23:35:23.866 12525 12555 E Unity : at System.Diagnostics.TraceInternal.TraceEvent (System.Diagnostics.TraceEventType eventType, System.Int32 id, System.String format, System.Object[ ] args) [0x0003d] in :0 06-02 23:35:23.866 12525 12555 E Unity : at System.Diagnostics.Trace.TraceError (System.String message) [0x00000] in :0 06-02 23:35:23.866 12525 12555 E Unity : at MySql.Data.MySqlClient.MySqlTrace.LogError (System.Int32 id, System.String msg) [0x00028] in :0 06-02 23:35:23.866 12525 12555 E Unity : at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver () [0x00031] in :0 06-02 23:35:23.866 12525 12555 E Unity : at MySql.Data.MySqlClient.MySqlPool.GetConnection () [0x0001c] in :0 06-02 23:35:23.866 12525 12555 E Unity : at MySql.Data.MySqlClient.MySqlConnection.Open () [0x0016c] in :0 06-02 23:35:23.866 12525 12555 E Unity : at DataBaseConnector.Start () [0x00029] in D:\Program Files\Test 2019.4.1
This error appears in logcat when i trying to make a connection to MySql database with MySql.Data.MySqlClient.MySqlConnection. Everything goes well in the editor, connection is created and requests are sent correctly. But after creating a build for android, nothing works. I opened adb logcat to see what was going on and found this error.
Code with connection provided below.
private string ConnectionString;
private string dbName = "***";
private string dbUsername = "***";
private string dbPassword = "***";
private string dbServer = "185.253.217.35";
private string dbPort = "***";
public TextMeshProUGUI debug;
Account account;
MySqlConnection conn;
MySqlDataReader reader;
private void Awake()
{
ConnectionString = string.Format("server={0};port={1};uid={2};pwd={3};database={4}",
dbServer,
dbPort,
dbUsername,
dbPassword,
dbName
);
}
void Start()
{
conn = new MySqlConnection();
print("START--------------------------------");
conn.ConnectionString = ConnectionString;
conn.Open();
}
Player settings:
Please help me.
Thank you.
Tnxah:
This error appears in logcat when i trying to make a connection to MySql database with MySql.Data.MySqlClient.MySqlConnection. Everything goes well in the editor, connection is created and requests are sent correctly. But after creating a build for android, nothing works. I opened adb logcat to see what was going on and found this error.
Code with connection provided below.
private string ConnectionString;
private string dbName = "***";
private string dbUsername = "***";
private string dbPassword = "***";
private string dbServer = "185.253.217.35";
private string dbPort = "***";
public TextMeshProUGUI debug;
Account account;
MySqlConnection conn;
MySqlDataReader reader;
private void Awake()
{
ConnectionString = string.Format("server={0};port={1};uid={2};pwd={3};database={4}",
dbServer,
dbPort,
dbUsername,
dbPassword,
dbName
);
}
void Start()
{
conn = new MySqlConnection();
print("START--------------------------------");
conn.ConnectionString = ConnectionString;
conn.Open();
}
Player settings:
Please help me.
Thank you.
advapi32 is a Windows dll, maybe MySqlClient assembly was meant for Windows platform only? Where did you get it?