@@ -252,7 +252,7 @@ public function check( $_, $assoc_args ) {
252
252
253
253
$ command = sprintf (
254
254
'/usr/bin/env %s%s %s ' ,
255
- $ this -> get_check_command (),
255
+ Utils \get_sql_check_command (),
256
256
$ this ->get_defaults_flag_string ( $ assoc_args ),
257
257
'%s '
258
258
);
@@ -300,7 +300,7 @@ public function check( $_, $assoc_args ) {
300
300
public function optimize ( $ _ , $ assoc_args ) {
301
301
$ command = sprintf (
302
302
'/usr/bin/env %s%s %s ' ,
303
- $ this -> get_check_command (),
303
+ Utils \get_sql_check_command (),
304
304
$ this ->get_defaults_flag_string ( $ assoc_args ),
305
305
'%s '
306
306
);
@@ -348,7 +348,7 @@ public function optimize( $_, $assoc_args ) {
348
348
public function repair ( $ _ , $ assoc_args ) {
349
349
$ command = sprintf (
350
350
'/usr/bin/env %s%s %s ' ,
351
- $ this -> get_check_command (),
351
+ Utils \get_sql_check_command (),
352
352
$ this ->get_defaults_flag_string ( $ assoc_args ),
353
353
'%s '
354
354
);
@@ -650,7 +650,7 @@ public function export( $args, $assoc_args ) {
650
650
$ assoc_args ['result-file ' ] = $ result_file ;
651
651
}
652
652
653
- $ mysqldump_binary = Utils \force_env_on_nix_systems ( $ this -> get_dump_command () );
653
+ $ mysqldump_binary = Utils \force_env_on_nix_systems ( Utils \get_sql_dump_command () );
654
654
655
655
$ support_column_statistics = exec ( $ mysqldump_binary . ' --help | grep "column-statistics" ' );
656
656
@@ -2207,22 +2207,4 @@ protected function get_current_sql_modes( $assoc_args ) {
2207
2207
private function get_mysql_command () {
2208
2208
return 'mariadb ' === Utils \get_db_type () ? 'mariadb ' : 'mysql ' ;
2209
2209
}
2210
-
2211
- /**
2212
- * Returns the correct `check` command based on the detected database type.
2213
- *
2214
- * @return string The appropriate check command.
2215
- */
2216
- private function get_check_command () {
2217
- return 'mariadb ' === Utils \get_db_type () ? 'mariadb-check ' : 'mysqlcheck ' ;
2218
- }
2219
-
2220
- /**
2221
- * Returns the correct `dump` command based on the detected database type.
2222
- *
2223
- * @return string The appropriate dump command.
2224
- */
2225
- private function get_dump_command () {
2226
- return 'mariadb ' === Utils \get_db_type () ? 'mariadb-dump ' : 'mysqldump ' ;
2227
- }
2228
2210
}
0 commit comments