wp-cli / db-command

Performs basic database operations using credentials stored in wp-config.php.
MIT License
71 stars 58 forks source link

Add optional `--no-tablespaces` parameter to `db export` #180

Closed garywong-bc closed 3 years ago

garywong-bc commented 4 years ago

As of MySQL 5.7.31, wp db export returns an error message (although the export still runs) of: now requires the PROCESS privilege

I'd like to add an optional parameter in $assoc_args as in: --no-tablespaces

I didn't see this Issue yet.. is no-one else seeing this? https://github.com/wp-cli/db-command/pulls?q=is%3Apr+tablespace

For further details, see:

broksonic21 commented 4 years ago

We ran into same issue - I'd love this to be addressed.

chesio commented 4 years ago

@schlessera I would suggest to move this issue to https://github.com/wp-cli/db-command/ for better visibility.

schlessera commented 4 years ago

Looks like it makes sense to include --no-tablespaces by default and provide an opt-out for that default for advanced use case (maybe --include-tablespaces as the opt-out?).

noxludo commented 3 years ago

As an agency, I use the wp db import/export commands for maintenance for all my customers (backup, restoration, migration)… and I have this error since my hosting company had updated all these servers. We need an update to add --no-tablespaces by default to be consistent with this recent mysql update as quickly as possible.

schlessera commented 3 years ago

Fixed via #182