Skip to content

Commit

Permalink
feat(backend): 增加从backend导出表结构到中控 TencentBlueKing#7501
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq committed Oct 23, 2024
1 parent 0b73c59 commit 1f2c81b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ func (c *ImportSchemaFromBackendComp) streamMigrate() (err error) {
Dumper: &mysqlutil.MyDumper{
Host: c.Params.BackendHost,
Port: c.Params.BackendPort,
User: c.spiderAdminUser,
Pwd: c.spiderAdminPwd,
User: c.Params.TdbctlUser,
Pwd: c.Params.TdbctlPass,
Charset: c.charset,
Options: mysqlutil.MyDumperOptions{
Threads: c.maxThreads,
Expand Down Expand Up @@ -236,8 +236,8 @@ func (c *ImportSchemaFromBackendComp) migrateUseMydumper() (err error) {
dumper := &mysqlutil.MyDumper{
Host: c.Params.BackendHost,
Port: c.Params.BackendPort,
User: c.spiderAdminUser,
Pwd: c.spiderAdminPwd,
User: c.Params.TdbctlUser,
Pwd: c.Params.TdbctlPass,
Charset: c.charset,
DumpDir: c.tmpDumpDir,
Options: mysqlutil.MyDumperOptions{
Expand Down Expand Up @@ -291,8 +291,8 @@ func (c *ImportSchemaFromBackendComp) migrateUseMysqlDump() (err error) {
DumpDir: c.tmpDumpDir,
Ip: c.Params.BackendHost,
Port: c.Params.BackendPort,
DbBackupUser: c.spiderAdminUser,
DbBackupPwd: c.spiderAdminPwd,
DbBackupUser: c.Params.TdbctlUser,
DbBackupPwd: c.Params.TdbctlPass,
DbNames: buildBackendDbNames(c.dumpDbs),
DumpCmdFile: path.Join(cst.MysqldInstallPath, "bin", "mysqldump"),
Charset: c.charset,
Expand Down

0 comments on commit 1f2c81b

Please sign in to comment.