hi i have written the following code
using UnityEngine; using MySql.Data.MySqlClient; using System; using System.Data; using System.Collections.Generic;
public class newSQLscript: MonoBehaviour {
private static MySqlConnection dbConnection;
public void Start () {
string connectionString = "left out for security reason" ;
dbConnection = new MySqlConnection(connectionString);
dbConnection.Open();
Debug.Log("Connected to database.");
//closeSqlConnection();
}
and it runs in the editor, however when i build and run it on iphone i get the following error:
Error building Player: SystemException: System.Net.Sockets are supported only on Unity iPhone Advanced. Referenced from assembly 'Mono.Data.Tds'. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(