Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Q: can it support only dump some specific tables? #30

Open
jmbkeyes opened this issue Aug 20, 2020 · 13 comments
Open

Q: can it support only dump some specific tables? #30

jmbkeyes opened this issue Aug 20, 2020 · 13 comments

Comments

@jmbkeyes
Copy link

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?

@BohuTANG
Copy link
Contributor

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.

@jmbkeyes
Copy link
Author

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

@BohuTANG
Copy link
Contributor

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

@jmbkeyes
Copy link
Author

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
Copy link
Author

can the tool ignore some columns when dump the data?

@BohuTANG
Copy link
Contributor

BohuTANG commented Aug 20, 2020

can the tool ignore some columns when dump the data?

No, but it easy to do.

BohuTANG added a commit that referenced this issue Aug 21, 2020
@BohuTANG
Copy link
Contributor

ignore columns done:
975a1b0

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

@jmbkeyes
Copy link
Author

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

@jmbkeyes
Copy link
Author

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

@BohuTANG
Copy link
Contributor

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

Not yet.

@jmbkeyes
Copy link
Author

@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
Copy link
Author

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

@BohuTANG
Copy link
Contributor

Not yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants