Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
data-center-auto
Commits
a98f479f
Commit
a98f479f
authored
Apr 07, 2023
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
只读库切换为读主库
parent
185e8df7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
appsettings.prod.json
AutoGeneratePurchaseAdvise/appsettings.prod.json
+1
-1
connectionHelper.cs
AutoTurnOver.DB/Base/connectionHelper.cs
+2
-1
No files found.
AutoGeneratePurchaseAdvise/appsettings.prod.json
View file @
a98f479f
{
"ConnectionStrings"
:
{
"Default"
:
"server=10.0.8.15;port=3306;database=bailun_datacenter;uid=root;password=#7kfnymAM$Y9-Ntf;"
,
"ReadOnly"
:
"server=10.0.8.
21
;port=3306;database=bailun_datacenter;uid=root;password=#7kfnymAM$Y9-Ntf;"
"ReadOnly"
:
"server=10.0.8.
15
;port=3306;database=bailun_datacenter;uid=root;password=#7kfnymAM$Y9-Ntf;"
},
"PushBuyPlan"
:
"http://api.purchase.bailuntec.com/api/CreatePlanToPurchase"
,
"QiNiu"
:
{
...
...
AutoTurnOver.DB/Base/connectionHelper.cs
View file @
a98f479f
...
...
@@ -62,7 +62,8 @@ namespace AutoTurnOver.DB
{
get
{
return
new
MySqlConnection
(
ConfigHelper
.
ConnectionString
(
"ReadOnly"
));
//return new MySqlConnection(ConfigHelper.ConnectionString("ReadOnly"));
return
new
MySqlConnection
(
ConfigHelper
.
ConnectionString
(
"Default"
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment