/// <summary> /// The MySQL server is started in the constructor /// </summary> private MySqlServer() { _mysqlDirectory = BaseDirHelper.GetBaseDir() + "\\tempServer"; _dataRootDirectory = _mysqlDirectory + "\\data"; _dataDirectory = string.Format("{0}\\{1}", _dataRootDirectory, Guid.NewGuid()); _runningInstancesFile = BaseDirHelper.GetBaseDir() + "\\running_instances"; }
/// <summary> /// The MySQL server is started in the constructor /// </summary> private MySqlServer(string baseDirectory) { baseDirectory = (!string.IsNullOrWhiteSpace(baseDirectory)) ? baseDirectory : BaseDirHelper.GetBaseDir(); _mysqlDirectory = baseDirectory + "\\tempServer"; _dataRootDirectory = _mysqlDirectory + "\\data"; _dataDirectory = string.Format("{0}\\{1}", _dataRootDirectory, Guid.NewGuid()); _runningInstancesFile = baseDirectory + "\\running_instances"; }