From 197e4729b0b1b28d50a7199e48904626d6dc3ee4 Mon Sep 17 00:00:00 2001 From: John Salter Date: Mon, 2 Sep 2024 18:27:59 +0100 Subject: [PATCH 1/3] Improve regexes for log-file error and warning counts --- mysqltuner.pl | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index cd860460..2f06e77c 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -1590,12 +1590,9 @@ sub log_file_recommendations { while ( my $logLi = <$fh> ) { chomp $logLi; $numLi++; - debugprint "$numLi: $logLi" - if $logLi =~ /warning|error/i and $logLi !~ /Logging to/; - $nbErrLog++ - if $logLi =~ /error/i - and $logLi !~ /(Logging to|\[Warning\].*ERROR_FOR_DIVISION_BY_ZERO)/; - $nbWarnLog++ if $logLi =~ /warning/i; + debugprint "$numLi: $logLi" if $logLi =~ /\[(warning|error)\]/i; + $nbErrLog++ if $logLi =~ /\[error\]/i; + $nbWarnLog++ if $logLi =~ /\[warning\]/i; push @lastShutdowns, $logLi if $logLi =~ /Shutdown complete/ and $logLi !~ /Innodb/i; push @lastStarts, $logLi if $logLi =~ /ready for connections/; From 14b295ec9282853293bcff6e3ba025b09b85408a Mon Sep 17 00:00:00 2001 From: gggeek Date: Wed, 4 Sep 2024 17:23:06 +0000 Subject: [PATCH 2/3] remove dupe line in .dockerignore --- .dockerignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index 395d14ec..25ffbd8d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,7 +1,6 @@ *.md -*.md build/** Makefile .perltidy *.json -*.png \ No newline at end of file +*.png From e519313752bbfdf54ed7ec22dac8af9748afba45 Mon Sep 17 00:00:00 2001 From: gggeek Date: Wed, 4 Sep 2024 17:23:17 +0000 Subject: [PATCH 3/3] fix typo in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cf4f268e..184fd95b 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ Test result are available here: * ColummStore * Connect -Unmaintenained staff from MySQL or MariaDB: +Unmaintenained stuff from MySQL or MariaDB: -- * MyISAM is too old and no longer active