예제 #1
0
 /// <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";
 }
예제 #2
0
 /// <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";
 }