We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c9b7a5e + 5dfe3fd commit 27dd210Copy full SHA for 27dd210
src/DB_Command.php
@@ -474,7 +474,14 @@ public function export( $args, $assoc_args ) {
474
$assoc_args['result-file'] = $result_file;
475
}
476
477
- $command = '/usr/bin/env mysqldump --no-defaults %s';
+ $support_column_statistics = exec( 'mysqldump --help | grep "column-statistics"' );
478
+
479
+ if ( $support_column_statistics ) {
480
+ $command = '/usr/bin/env mysqldump --no-defaults --skip-column-statistics %s';
481
+ } else {
482
+ $command = '/usr/bin/env mysqldump --no-defaults %s';
483
+ }
484
485
$command_esc_args = array( DB_NAME );
486
487
if ( isset( $assoc_args['tables'] ) ) {
0 commit comments