Issue ##108 Adding --auto-vertical-output=false

This commit is contained in:
Jean-Marie RENOUARD 2015-08-24 10:32:56 +02:00
parent 3f78587411
commit bf17735e51

View file

@ -386,6 +386,9 @@ sub mysql_setup {
badprint "Couldn't find mysql in your \$PATH. Is MySQL installed?"; badprint "Couldn't find mysql in your \$PATH. Is MySQL installed?";
exit 1; exit 1;
} }
$mysqlcmd =~ s/\n$//g;
$mysqlcmd .=" --auto-vertical-output=false";
debugprint "MySQL Client: $mysqlcmd";
# Are we being asked to connect via a socket? # Are we being asked to connect via a socket?
if ( $opt{socket} ne 0 ) { if ( $opt{socket} ne 0 ) {
@ -712,7 +715,7 @@ sub security_recommendations {
# Looking for Empty Password # Looking for Empty Password
@mysqlstatlist = select_array @mysqlstatlist = select_array
"SELECT CONCAT(user, '\@', host) FROM mysql.user WHERE (password = '' OR password IS NULL) AND (plugin='' OR plugin IS NULL)"; "SELECT CONCAT(user, '\@', host) FROM mysql.user WHERE password = '' OR password IS NULL";
if (@mysqlstatlist) { if (@mysqlstatlist) {
foreach my $line ( sort @mysqlstatlist ) { foreach my $line ( sort @mysqlstatlist ) {
chomp($line); chomp($line);