Open mittus opened 2 years ago
` private void SetupMariaDB_Shown(object sender, EventArgs e) { if (Directory.Exists(dataDirectory)) { DialogResult result = MessageBox.Show( Language.Resource.MARIADB_DATA_DIR_EXISTS.Replace("{dataDirectory}", dataDirectory), Language.Resource.MARIADB_SETUP, MessageBoxButtons.YesNo, MessageBoxIcon.Warning ); if (result == DialogResult.No) { Close(); return; } else { try { Directory.Delete(dataDirectory, true); } catch (Exception ex) { Log.Error(ex.Message); } }
}
}
` I report a "Setup MariaDB" problem:
Directory.Delete(dataDirectory, true);
This line of code is very dangerous. it will easily delete all the data in 'data' dir. It is recommended to change it to rename dataDirectory.
I write password for root user mysql in the config file "my.ini", but I can't start MariaDB Shell without password from WNMP interface.
If I start mysql from any bash, it work's for me.
And I whant remove button "Setup MariaDB", can you make visability for this button optional with application settings?