[All]修改MYSQL連線字串的條件,改善重開機後需要手動連DB才能運行的問題
This commit is contained in:
parent
5365ab66c0
commit
bdb9ffe9de
@ -66,7 +66,7 @@ namespace Repository.Helper
|
|||||||
//var databaseStr = ed.AESEncrypt("bims_mitsubishi"); // bims_wsp: IgYBsgG2VLKKxFb64j7LOA== ; bims_mitsubishi
|
//var databaseStr = ed.AESEncrypt("bims_mitsubishi"); // bims_wsp: IgYBsgG2VLKKxFb64j7LOA== ; bims_mitsubishi
|
||||||
//var rootStr = ed.AESEncrypt("bims"); // bims
|
//var rootStr = ed.AESEncrypt("bims"); // bims
|
||||||
//var passwordStr = ed.AESEncrypt("mjmdev_BIMS2022"); // mjmdev_BIMS2022
|
//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);
|
//var conn = new MySqlConnection(connStr);
|
||||||
return connStr;
|
return connStr;
|
||||||
|
Loading…
Reference in New Issue
Block a user