in Configurator/Core/Server/MySqlServerSettings.cs [944:980]
public void Save(IniTemplate template, bool skipExistingValues = false)
{
if (!template.IsValid)
{
throw new Exception(Resources.InvalidServerTemplate);
}
template.ServerInstallationType = ServerInstallationType;
template.EnableNetworking = EnableTcpIp;
template.Port = Port;
template.EnableNamedPipe = EnableNamedPipe;
template.PipeName = PipeName;
template.EnableSharedMemory = EnableSharedMemory;
template.MemoryName = SharedMemoryName;
template.EnableQueryType = EnableQueryCacheType;
template.EnableQueryCache = EnableQueryCacheSize;
template.LogError = string.IsNullOrEmpty(ErrorLogFileName) ? string.Empty : $"\"{ErrorLogFileName.Replace('\\', '/')}\"";
template.BaseDir = template.BaseDir.Replace('\\', '/');
template.DataDir = template.DataDir.Replace('\\', '/');
template.GeneralLogFile = string.IsNullOrEmpty(GeneralQueryLogFileName) ? string.Empty : $"\"{GeneralQueryLogFileName.Replace('\\', '/')}\"";
template.SlowQueryLogFile = string.IsNullOrEmpty(SlowQueryLogFileName) ? string.Empty : $"\"{SlowQueryLogFileName.Replace('\\', '/')}\"";
template.LongQueryTime = LongQueryTime.ToString();
template.LogOutput = (EnableGeneralLog || EnableSlowQueryLog) ? "FILE" : "NONE";
template.GeneralLog = (EnableGeneralLog) ? "1" : "0";
template.SlowQueryLog = (EnableSlowQueryLog) ? "1" : "0";
template.LogBin = (EnableBinLog) ? string.IsNullOrEmpty(BinLogFileNameBase) ? string.Empty :
$"\"{BinLogFileNameBase.Replace('\\', '/')}\""
: string.Empty;
template.ServerId = ServerId;
template.LowerCaseTableNames = LowerCaseTableNames;
template.SecureFilePriv = string.IsNullOrEmpty(SecureFilePrivFolder) ? string.Empty : $"\"{SecureFilePrivFolder.Replace('\\', '/')}\"";
template.PluginLoad = string.IsNullOrEmpty(Plugins.ToString()) ? string.Empty : $"\"{Plugins}\"";
template.MySqlXPort = MySqlXPort == 0 ? X_PROTOCOL_DEFAULT_PORT : MySqlXPort;
template.NamedPipeFullAccessGroup = NamedPipeFullAccessGroup;
template.ProcessTemplate(false, true, skipExistingValues);
SaveGeneralSettings();
}