public static void Start(string ipAddress, string username, string password, int port = 3306)
        {
            try
            {
                conn = new MySqlConnection($"Server={ipAddress};Port={port};User={username};Password={password};Connect Timeout=10");
                conn.Open();

                Debug.Log($"MySQL started with state: {connectionState}");
            }
            catch (Exception ex) { ExceptionWriting.WriteException(ex); }
        }
Esempio n. 2
0
        public static void Start()
        {
            try
            {
                conn = new SqliteConnection($"URI=file:{Application.streamingAssetsPath}/Database.db");
                conn.Open();

                Debug.Log($"SQLite started with state: {conn.State}");
            }
            catch (Exception ex) { ExceptionWriting.WriteException(ex); }
        }