change-添加数据库连接超时

dev
liuwf 2 weeks ago
parent 1aff8cbc77
commit e0de4b68df

@ -61,6 +61,7 @@ namespace SlnMesnac.Extensions
ConnectionString = item.connStr, ConnectionString = item.connStr,
InitKeyType = InitKeyType.Attribute, InitKeyType = InitKeyType.Attribute,
IsAutoCloseConnection = true, IsAutoCloseConnection = true,
}; };
connectConfigList.Add(config); connectConfigList.Add(config);
} }

@ -15,7 +15,7 @@
"configId": "mes", "configId": "mes",
"dbType": 0, "dbType": 0,
// "connStr": "Data Source=175.27.215.92;Port=3306;Initial Catalog=hwjy-cloud;uid=root;pwd=haiwei@123;Charset=utf8mb4;SslMode=none" // "connStr": "Data Source=175.27.215.92;Port=3306;Initial Catalog=hwjy-cloud;uid=root;pwd=haiwei@123;Charset=utf8mb4;SslMode=none"
"connStr": "Data Source=172.16.12.100;Port=3306;Initial Catalog=hwjy-cloud;uid=root;pwd=JyhbRk@123456;Charset=utf8mb4;SslMode=none" "connStr": "Data Source=172.16.12.100;Port=3306;Initial Catalog=hwjy-cloud;uid=root;pwd=JyhbRk@123456;Charset=utf8mb4;SslMode=none;Connect Timeout=100"
}, },
{ {
"configId": "local", "configId": "local",

Loading…
Cancel
Save