go-mydumper icon indicating copy to clipboard operation
go-mydumper copied to clipboard

Q: can it support only dump some specific tables?

Open jmbkeyes opened this issue 5 years ago • 13 comments

I have the following questions?

  1. Can it support only dump some specific tables?

  2. Can it only dump the data without the schema sql, and then load the data into database via myloader?

jmbkeyes avatar Aug 20 '20 05:08 jmbkeyes

I have the following questions?

  1. Can it support only dump some specific tables?

No, it's database based.

  1. Can it only dump the data without the schema sql, and then load the data into database via myloader?

No.

BohuTANG avatar Aug 20 '20 06:08 BohuTANG

Do you have any plan to support this feature? repository(https://github.com/maxbube/mydumper) seems support this feature but without supporing where condition.

jmbkeyes avatar Aug 20 '20 06:08 jmbkeyes

No plans yet, but it will be easy to do. BTW, which of these two do you prefer? I will take priority.

BohuTANG avatar Aug 20 '20 07:08 BohuTANG

2 has high priority than 1.

BTW , for 1 , I see the code cmd/config.go, and try add table = trainee_sub_center_info,trainee_center_info in [mysql] section, then run the mydumper, only those two tables are dumped. Does the tool already support 1st question?

jmbkeyes avatar Aug 20 '20 07:08 jmbkeyes

can the tool ignore some columns when dump the data?

jmbkeyes avatar Aug 20 '20 07:08 jmbkeyes

can the tool ignore some columns when dump the data?

No, but it easy to do.

BohuTANG avatar Aug 20 '20 10:08 BohuTANG

ignore columns done: https://github.com/xelabs/go-mydumper/commit/975a1b0cacc00f476994ad9982a1cc98480882f5

And more details to see: https://github.com/xelabs/go-mydumper/blob/master/conf/mydumper.ini.sample

BohuTANG avatar Aug 21 '20 05:08 BohuTANG

Thanks for your quick response. and looking forward to the feature (dump the data without schema and load the data into database).

jmbkeyes avatar Aug 24 '20 01:08 jmbkeyes

@BohuTANG, Is the feature(dump data without the schema sql, and then load the data into database via myloader) in your plan?

jmbkeyes avatar Aug 27 '20 01:08 jmbkeyes

@BohuTANG, Is the feature(dump data without the schema sql, and then load the data into database via myloader) in your plan?

Not yet.

BohuTANG avatar Aug 27 '20 01:08 BohuTANG

@BohuTANG, Is the feature(dump data without the schema sql, and then load the data into database via myloader) in your plan?

Not yet.

Will you plan support this feature?

jmbkeyes avatar Aug 27 '20 02:08 jmbkeyes

@BohuTANG same question does the feature(dump data without the schema sql, and then load the data into database via myloader) in your plan?

jmbkeyes avatar Nov 26 '20 05:11 jmbkeyes

Not yet.

BohuTANG avatar Nov 28 '20 05:11 BohuTANG