This commit is contained in:
2023-06-28 17:48:50 +08:00
parent 4a3c958e1a
commit a567befac3
21 changed files with 309 additions and 122 deletions

View File

@ -30,7 +30,12 @@ public enum DatasourceErrorCode {
/**
* 创建表错误
*/
CREATE_TABLE_ERROR(50104, "创建表错误");
CREATE_TABLE_ERROR(50104, "创建表错误"),
/**
* 创建模式/库错误
*/
CREATE_SCHEMA_ERROR(50105, "创建模式/库错误");
private final Integer code;
private final String msg;

View File

@ -22,7 +22,7 @@ public enum DataBaseEnum {
* MySQL
*/
MY_SQL("MySQL",
"jdbc:mysql://{}:{}/{}?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowMultiQueries=true",
"jdbc:mysql://{}:{}/{}?databaseTerm=SCHEMA&useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowMultiQueries=true",
"com.mysql.cj.jdbc.Driver",
"SELECT 1"),