正在显示
1 个修改的文件
包含
2 行增加
和
3 行删除
@@ -2,7 +2,6 @@ package starrocks | @@ -2,7 +2,6 @@ package starrocks | ||
2 | 2 | ||
3 | import ( | 3 | import ( |
4 | "database/sql" | 4 | "database/sql" |
5 | - mysql "github.com/go-sql-driver/mysql" | ||
6 | "gitlab.fjmaimaimai.com/allied-creation/character-library-metadata-bastion/pkg/constant" | 5 | "gitlab.fjmaimaimai.com/allied-creation/character-library-metadata-bastion/pkg/constant" |
7 | "gitlab.fjmaimaimai.com/allied-creation/character-library-metadata-bastion/pkg/log" | 6 | "gitlab.fjmaimaimai.com/allied-creation/character-library-metadata-bastion/pkg/log" |
8 | "time" | 7 | "time" |
@@ -12,8 +11,8 @@ var DBOfficial *sql.DB | @@ -12,8 +11,8 @@ var DBOfficial *sql.DB | ||
12 | 11 | ||
13 | func InitDBOfficial() error { | 12 | func InitDBOfficial() error { |
14 | var err error | 13 | var err error |
15 | - sql.Register("mysql-star", &mysql.MySQLDriver{}) | ||
16 | - DBOfficial, err = sql.Open("mysql-star", constant.STARROCKS_MYSQL_DATA_SOURCE) | 14 | + //sql.Register("mysql-star", &mysql.MySQLDriver{}) |
15 | + DBOfficial, err = sql.Open("mysql", constant.STARROCKS_MYSQL_DATA_SOURCE) | ||
17 | if err != nil { | 16 | if err != nil { |
18 | return err | 17 | return err |
19 | } | 18 | } |
-
请 注册 或 登录 后发表评论