Skip to content

Commit

Permalink
444
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq committed Jan 14, 2025
1 parent a262c29 commit 115fd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbm-services/mysql/db-simulation/app/service/kubernets.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ func (k *DbPodSets) getLoadSchemaSQLCmd(bkpath, file string) (cmd string) {
// 因为模拟执行是需要将中控进行sql转发
commands = append(commands, fmt.Sprintf("sed -i '/50720 SET tc_admin=0/d' %s", file))
// del definer
commands = append(commands, fmt.Sprintf("sed -i 's/\\sDEFINER=`[^`]*`@`[^`]*`//g'` %s", file))
commands = append(commands, fmt.Sprintf("sed -i 's/\\sDEFINER=`[^`]*`@`[^`]*`//g' %s", file))
commands = append(commands, fmt.Sprintf("mysql -uroot -p%s --default-character-set=%s -vvv < %s", k.BaseInfo.RootPwd,
k.BaseInfo.Charset, file))
return strings.Join(commands, " && ")
Expand Down

0 comments on commit 115fd90

Please sign in to comment.