|
@@ -21,12 +21,12 @@
|
|
|
//MySql "Server=localhost; Port=3306; Database=mysql; Uid=root; Pwd=pwd; Charset=utf8mb4;SslMode=none;Min pool size=1"
|
|
|
//SqlServer "Data Source=.;User Id=sa;Password=pwd;Initial Catalog=master;TrustServerCertificate=true;Pooling=true;Min Pool Size=1"
|
|
|
//PostgreSQL "Host=localhost;Port=5432;Username=postgres;Password=; Database=postgres;Pooling=true;Minimum Pool Size=1",
|
|
|
- "createDbConnectionString": "Server=localhost; Port=3306; Database=mysql; Uid=root; Pwd=pwd; Charset=utf8mb4;",
|
|
|
+ "createDbConnectionString": "Server=192.144.191.50; Port=3306; Database=jiujiu_zhongjie5; Uid=jiujiu_zhongjie5; Pwd=EjmCA6Ff4bSmKk32; Charset=utf8mb4;",
|
|
|
//建库脚本,复杂建库脚本可放到createdbsql.txt中
|
|
|
//MySql "CREATE DATABASE `admindb` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_general_ci'"
|
|
|
//SqlServer "CREATE DATABASE [admindb]"
|
|
|
//PostgreSQL "CREATE DATABASE \"admindb\" WITH ENCODING = 'UTF8'"
|
|
|
- "createDbSql": "CREATE DATABASE `admindb` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_general_ci'",
|
|
|
+ "createDbSql": "CREATE DATABASE `jiujiu_zhongjie5` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_general_ci'",
|
|
|
|
|
|
//同步结构
|
|
|
"syncStructure": true,
|
|
@@ -57,17 +57,17 @@
|
|
|
|
|
|
//数据库配置 https://github.com/dotnetcore/FreeSql/wiki/入门
|
|
|
//数据库类型 MySql = 0, SqlServer = 1, PostgreSQL = 2, Oracle = 3, Sqlite = 4, OdbcOracle = 5, OdbcSqlServer = 6, OdbcMySql = 7, OdbcPostgreSQL = 8, Odbc = 9, OdbcDameng = 10, MsAccess = 11, Dameng = 12, OdbcKingbaseES = 13, ShenTong = 14, KingbaseES = 15, Firebird = 16
|
|
|
- "type": "Sqlite",
|
|
|
+ "type": "MySql",
|
|
|
//连接字符串
|
|
|
//MySql "Server=localhost; Port=3306; Database=admindb; Uid=root; Pwd=pwd; Charset=utf8mb4;SslMode=none;Min pool size=1"
|
|
|
//SqlServer "Data Source=.;User Id=sa;Password=pwd;Initial Catalog=admindb;TrustServerCertificate=true;Pooling=true;Min Pool Size=1"
|
|
|
//PostgreSQL "Host=localhost;Port=5432;Username=postgres;Password=; Database=admindb;Pooling=true;Minimum Pool Size=1"
|
|
|
//Sqlite "Data Source=|DataDirectory|\\admindb.db; Pooling=true;Min Pool Size=1"
|
|
|
- "connectionString": "Data Source=|DataDirectory|\\admindb.db; Pooling=true;Min Pool Size=1",
|
|
|
+ "connectionString": "Server=192.144.191.50; Port=3306; Database=jiujiu_zhongjie5; Uid=jiujiu_zhongjie5; Pwd=EjmCA6Ff4bSmKk32; Charset=utf8mb4;SslMode=none;Min pool size=1",
|
|
|
|
|
|
//指定程序集
|
|
|
//FreeSql.MySql.MySqlProvider`1,FreeSql.Provider.MySqlConnector
|
|
|
- "providerType": "",
|
|
|
+ "providerType": "FreeSql.Provider.MySqlConnector",
|
|
|
|
|
|
//读写分离从库列表
|
|
|
"slaveList": [
|