File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -856,7 +856,15 @@ public function install_wp( $subdir = '' ) {
856856 if ( $ install_cache_path ) {
857857 mkdir ( $ install_cache_path );
858858 self ::dir_diff_copy ( $ run_dir , self ::$ cache_dir , $ install_cache_path );
859- self ::run_sql ( 'mysqldump --no-defaults ' , array ( 'result-file ' => "{$ install_cache_path }.sql " ), true /*add_database*/ );
859+
860+ $ mysqldump_binary = Utils \force_env_on_nix_systems ( 'mysqldump ' );
861+ $ support_column_statistics = exec ( "{$ mysqldump_binary } --help | grep 'column-statistics' " );
862+ $ command = 'mysqldump --no-defaults ' ;
863+ if ( $ support_column_statistics ) {
864+ $ command .= ' --skip-column-statistics ' ;
865+ }
866+
867+ self ::run_sql ( $ command , array ( 'result-file ' => "{$ install_cache_path }.sql " ), true /*add_database*/ );
860868 }
861869 }
862870 }
You can’t perform that action at this time.
0 commit comments