Giving multiple same arguments to mysqldump (via wp db export) only forwards the latest
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start at the wp db export command and inspect how repeated --ignore-table-data arguments are parsed before being passed to mysqldump. Reproduce the documented command with two values, then verify that both table arguments are forwarded and that existing export behavior remains intact.
Written by the indexing model from the issue text.
Description
Bug Report
- Yes, I reviewed the contribution guidelines.
- Yes, more specifically, I reviewed the guidelines on how to write clear bug reports.
Using the following example:
wp db export --ignore-table-data=database.wp_fc_campaign_emails --ignore-table-data=database.wp_fsmpt_email_logs --ignore-table-data=database.wp_fc_campaign_url_metrics export.sql
Only the value of --ignore-table-data=database.wp_fc_campaign_url_metrics is forwarded to mysqldump.
From the docs:
To specify more than one table to ignore, use the directive multiple times, once for each table. Each table must be specified with both database and table names. See also --no-data.
I expect the arguments are parsed, and duplicate keys are just overridden by each other, which is not expected in this scenario.
- Dominant language
- PHP
- Stars
- 76
- Forks
- 73
- Avg merge
- 9h 31m
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wp-cli/db-command
-
command:db-size scope:documentation
Difficulty 3/5 1-2 days Newbie friendliness 65/100
wp-cli/db-command#348 · 1 comment ·
-
bug command:db-query
wp-cli/db-command#319 · 5 comments · 1 reaction · 2 assignees ·
-
command:db scope:distribution state:unconfirmed
wp-cli/db-command#306 · 5 comments · 1 reaction · 2 assignees ·
-
command:db-export command:db-import scope:distribution state:unconfirmed
Difficulty 5/5 Over a week Newbie friendliness 25/100
wp-cli/db-command#327 · 8 comments · 2 reactions ·
-
command:db command:db-search
Difficulty 3/5 1-2 days Newbie friendliness 35/100
wp-cli/db-command#156 · 1 comment · 20 reactions ·
All issues in wp-cli/db-command
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
a11y admissions.uiowa.edu needs grooming SiteImprove best practice
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Save States Menu Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
pluginsGLPI/datainjection#673 ·