Beispiel #1
0
        public override void DropDB(string server, string catalog)
        {
            MySqlAccess sqlAccess = new MySqlAccess();

            try
            {
                sqlAccess.DeleteDatabase(Connections.GetConnectionString(this.Server, this.ServerUserName, this.ServerPassword, false, GetSqlProduct()), catalog);
            }
            catch (MySql.Data.MySqlClient.MySqlException exception)
            {
                throw new DuradosException("Error occured when deleting app " + catalog + " Error message: " + exception.Message);
            }
            Maps.Instance.DuradosMap.Logger.Log("ProductMaintenance", "RemoveApp", "DropDB", null, 3, "Catalog:" + catalog + " was droped");
        }