diff --git a/mysqltuner.pl b/mysqltuner.pl index 36da443..1007d43 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -1053,6 +1053,9 @@ sub select_csv_file { my @result =select_array($req); open( my $fh, '>', $tfile ) or die "Could not open file '$tfile' $!"; for my $l (@result) { + $l=~s/\t/","/g; + $l=~s/^/"/; + $l=~s/$/"/; print $fh $l; } close $fh;