From 1fd6c8657a0f3a1a1413297d6017eac40fa8287f Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Sat, 1 Jun 2024 06:28:13 +0300 Subject: [PATCH] fix: change connction string for mysql --- Endpoint/Controllers/Configuration/SetupController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Endpoint/Controllers/Configuration/SetupController.cs b/Endpoint/Controllers/Configuration/SetupController.cs index ac55b56..1e9bacd 100644 --- a/Endpoint/Controllers/Configuration/SetupController.cs +++ b/Endpoint/Controllers/Configuration/SetupController.cs @@ -114,11 +114,11 @@ public class SetupController(ISetupToken setupToken, IMaintenanceModeNotConfigur [BadRequestResponse] public ActionResult SetMysql([FromBody] DatabaseRequest request) { - string connectionString = $"Server={request.Server}:{request.Port};Uid={request.User};Database={request.Database}"; + string connectionString = $"Server={request.Server}:{request.Port};Uid={request.User};Database={request.Database};"; if (request.Password != null) - connectionString += $";Pwd={request.Password}"; + connectionString += $"Pwd={request.Password};"; if (request.Ssl) - connectionString += ";SslMode=Require;"; + connectionString += "SslMode=Require;"; return SetDatabase(connectionString, DbSettings.DatabaseEnum.Mysql); }