From bdb9ffe9de8a346860eb087c91ab1a38a12762e5 Mon Sep 17 00:00:00 2001 From: "jay.chang" Date: Wed, 10 Apr 2024 09:23:27 +0800 Subject: [PATCH] =?UTF-8?q?[All]=E4=BF=AE=E6=94=B9MYSQL=E9=80=A3=E7=B7=9A?= =?UTF-8?q?=E5=AD=97=E4=B8=B2=E7=9A=84=E6=A2=9D=E4=BB=B6=EF=BC=8C=E6=94=B9?= =?UTF-8?q?=E5=96=84=E9=87=8D=E9=96=8B=E6=A9=9F=E5=BE=8C=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E6=89=8B=E5=8B=95=E9=80=A3DB=E6=89=8D=E8=83=BD=E9=81=8B?= =?UTF-8?q?=E8=A1=8C=E7=9A=84=E5=95=8F=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Repository/Helper/DatabaseHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Repository/Helper/DatabaseHelper.cs b/Repository/Helper/DatabaseHelper.cs index 5120e14..0841b44 100644 --- a/Repository/Helper/DatabaseHelper.cs +++ b/Repository/Helper/DatabaseHelper.cs @@ -66,7 +66,7 @@ namespace Repository.Helper //var databaseStr = ed.AESEncrypt("bims_mitsubishi"); // bims_wsp: IgYBsgG2VLKKxFb64j7LOA== ; bims_mitsubishi //var rootStr = ed.AESEncrypt("bims"); // bims //var passwordStr = ed.AESEncrypt("mjmdev_BIMS2022"); // mjmdev_BIMS2022 - var connStr = $"server={serverStr};port={portStr};database={databaseStr};user={rootStr};password={passwordStr};charset=utf8;Allow User Variables=True;SslMode=None;"; + var connStr = $"server={serverStr};port={portStr};database={databaseStr};user={rootStr};password={passwordStr};charset=utf8;Allow User Variables=True;SslMode=Required;"; // 2024.04.09 SSLmode改成Required,改善重開機無法自動連上MYSQL的問題 //var conn = new MySqlConnection(connStr); return connStr;