@@ -227,6 +227,7 @@ public function check( $_, $assoc_args ) {
227
227
228
228
$ command = sprintf ( '/usr/bin/env mysqlcheck%s %s ' , $ this ->get_defaults_flag_string ( $ assoc_args ), '%s ' );
229
229
WP_CLI ::debug ( "Running shell command: {$ command }" , 'db ' );
230
+ WP_CLI ::debug ( 'Associative arguments: ' . json_encode ( $ assoc_args ), 'db ' );
230
231
231
232
$ assoc_args ['check ' ] = true ;
232
233
self ::run (
@@ -270,6 +271,7 @@ public function optimize( $_, $assoc_args ) {
270
271
271
272
$ command = sprintf ( '/usr/bin/env mysqlcheck%s %s ' , $ this ->get_defaults_flag_string ( $ assoc_args ), '%s ' );
272
273
WP_CLI ::debug ( "Running shell command: {$ command }" , 'db ' );
274
+ WP_CLI ::debug ( 'Associative arguments: ' . json_encode ( $ assoc_args ), 'db ' );
273
275
274
276
$ assoc_args ['optimize ' ] = true ;
275
277
self ::run (
@@ -313,6 +315,7 @@ public function repair( $_, $assoc_args ) {
313
315
314
316
$ command = sprintf ( '/usr/bin/env mysqlcheck%s %s ' , $ this ->get_defaults_flag_string ( $ assoc_args ), '%s ' );
315
317
WP_CLI ::debug ( "Running shell command: {$ command }" , 'db ' );
318
+ WP_CLI ::debug ( 'Associative arguments: ' . json_encode ( $ assoc_args ), 'db ' );
316
319
317
320
$ assoc_args ['repair ' ] = true ;
318
321
self ::run (
@@ -354,10 +357,11 @@ public function repair( $_, $assoc_args ) {
354
357
*
355
358
* @alias connect
356
359
*/
357
- public function cli ( $ args , $ assoc_args ) {
360
+ public function cli ( $ _ , $ assoc_args ) {
358
361
359
362
$ command = sprintf ( '/usr/bin/env mysql%s --no-auto-rehash ' , $ this ->get_defaults_flag_string ( $ assoc_args ) );
360
363
WP_CLI ::debug ( "Running shell command: {$ command }" , 'db ' );
364
+ WP_CLI ::debug ( 'Associative arguments: ' . json_encode ( $ assoc_args ), 'db ' );
361
365
362
366
if ( ! isset ( $ assoc_args ['database ' ] ) ) {
363
367
$ assoc_args ['database ' ] = DB_NAME ;
@@ -423,6 +427,7 @@ public function query( $args, $assoc_args ) {
423
427
424
428
$ command = sprintf ( '/usr/bin/env mysql%s --no-auto-rehash ' , $ this ->get_defaults_flag_string ( $ assoc_args ) );
425
429
WP_CLI ::debug ( "Running shell command: {$ command }" , 'db ' );
430
+ WP_CLI ::debug ( 'Associative arguments: ' . json_encode ( $ assoc_args ), 'db ' );
426
431
427
432
$ assoc_args ['database ' ] = DB_NAME ;
428
433
@@ -558,6 +563,7 @@ public function export( $args, $assoc_args ) {
558
563
559
564
$ initial_command = sprintf ( '/usr/bin/env mysqldump%s ' , $ this ->get_defaults_flag_string ( $ assoc_args ) );
560
565
WP_CLI ::debug ( "Running initial shell command: {$ initial_command }" , 'db ' );
566
+ WP_CLI ::debug ( 'Associative arguments: ' . json_encode ( $ assoc_args ), 'db ' );
561
567
562
568
if ( $ support_column_statistics ) {
563
569
$ command = $ initial_command . '--skip-column-statistics %s ' ;
@@ -666,6 +672,7 @@ public function import( $args, $assoc_args ) {
666
672
667
673
$ command = sprintf ( '/usr/bin/env mysql%s --no-auto-rehash ' , $ this ->get_defaults_flag_string ( $ assoc_args ) );
668
674
WP_CLI ::debug ( "Running shell command: {$ command }" , 'db ' );
675
+ WP_CLI ::debug ( 'Associative arguments: ' . json_encode ( $ assoc_args ), 'db ' );
669
676
670
677
self ::run ( $ command , $ mysql_args );
671
678
0 commit comments