From 6148f9f05d14242eaab2073f1a72514fb26d57d7 Mon Sep 17 00:00:00 2001 From: yuanruji Date: Mon, 28 Oct 2024 18:25:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(dbm-services):=20=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E8=A7=A6=E5=8F=91=E5=99=A8=EF=BC=8C=E5=AD=98?= =?UTF-8?q?=E5=82=A8=E8=BF=87=E7=A8=8B=E5=AF=BC=E5=87=BA=E4=BA=86=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=20#7625?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db-tools/dbactuator/pkg/util/mysqlutil/mysql_dumper.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dbm-services/mysql/db-tools/dbactuator/pkg/util/mysqlutil/mysql_dumper.go b/dbm-services/mysql/db-tools/dbactuator/pkg/util/mysqlutil/mysql_dumper.go index 4232334543..4d9535755a 100644 --- a/dbm-services/mysql/db-tools/dbactuator/pkg/util/mysqlutil/mysql_dumper.go +++ b/dbm-services/mysql/db-tools/dbactuator/pkg/util/mysqlutil/mysql_dumper.go @@ -254,6 +254,8 @@ func (m *MySQLDumper) getDumpCmd(outputFile, errFile, dumpOption string) (dumpCm } case m.DumpSchema: dumpOption += " -d " + case !m.DumpData && !m.DumpSchema: + dumpOption += " --no-create-info --no-data --no-create-db " } if m.AddDropTable {