Commit a98f479f by lizefeng

只读库切换为读主库

parent 185e8df7
{ {
"ConnectionStrings": { "ConnectionStrings": {
"Default": "server=10.0.8.15;port=3306;database=bailun_datacenter;uid=root;password=#7kfnymAM$Y9-Ntf;", "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", "PushBuyPlan": "http://api.purchase.bailuntec.com/api/CreatePlanToPurchase",
"QiNiu": { "QiNiu": {
......
...@@ -62,7 +62,8 @@ namespace AutoTurnOver.DB ...@@ -62,7 +62,8 @@ namespace AutoTurnOver.DB
{ {
get get
{ {
return new MySqlConnection(ConfigHelper.ConnectionString("ReadOnly")); //return new MySqlConnection(ConfigHelper.ConnectionString("ReadOnly"));
return new MySqlConnection(ConfigHelper.ConnectionString("Default"));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment