Last updates

This commit is contained in:
Jean-Marie Renouard 2023-09-09 08:25:09 +02:00
parent fb4ea3fb1d
commit d46c05da77
5 changed files with 20 additions and 24 deletions

3
.gitignore vendored
View File

@ -16,4 +16,5 @@ test_db/**
result* result*
result_* result_*
sql/*.sql sql/*.sql
sql/*.csv sql/*.csv
cve.csv

View File

@ -2,11 +2,7 @@ Features list for option: --feature (dev only)
--- ---
* calculations
* compare_tuner_version
* cpu_cores
* cve_recommendations * cve_recommendations
* grep_file_contents
* log_file_recommendations * log_file_recommendations
* make_recommendations * make_recommendations
* mariadb_aria * mariadb_aria
@ -17,7 +13,6 @@ Features list for option: --feature (dev only)
* mariadb_threadpool * mariadb_threadpool
* mariadb_tokudb * mariadb_tokudb
* mariadb_xtradb * mariadb_xtradb
* merge_hash
* mysql_databases * mysql_databases
* mysql_indexes * mysql_indexes
* mysql_innodb * mysql_innodb
@ -29,14 +24,8 @@ Features list for option: --feature (dev only)
* mysql_table_structures * mysql_table_structures
* mysql_tables * mysql_tables
* mysql_triggers * mysql_triggers
* mysql_version_eq
* mysql_version_ge
* mysql_version_le
* mysql_views * mysql_views
* os_setup
* pretty_uptime
* security_recommendations * security_recommendations
* system_recommendations * system_recommendations
* update_tuner_version
* validate_mysql_version * validate_mysql_version
* validate_tuner_version * validate_tuner_version

View File

@ -26,35 +26,41 @@ installdep_debian:
tidy: tidy:
dos2unix ./mysqltuner.pl dos2unix ./mysqltuner.pl
perltidy -b ./mysqltuner.pl perltidy -b ./mysqltuner.pl
# git add ./mysqltuner.pl git add ./mysqltuner.pl
# git commit -m "Indenting mysqltuner at $(shell date --iso=seconds)" git commit -m "Indenting mysqltuner at $(shell date --iso=seconds)"
generate_usage: generate_usage:
pod2markdown mysqltuner.pl >USAGE.md pod2markdown mysqltuner.pl >USAGE.md
# git add ./USAGE.md git add ./USAGE.md
# git commit -m "Generate USAGE.md at $(shell date --iso=seconds)" git commit -m "Generate USAGE.md at $(shell date --iso=seconds)"
generate_cve: generate_cve:
perl ./build/updateCVElist.pl perl ./build/updateCVElist.pl
# git add ./vulnerabilities.csv git add ./vulnerabilities.csv
# git commit -m "Generate CVE list at $(shell date --iso=seconds)" git commit -m "Generate CVE list at $(shell date --iso=seconds)"
generate_features: generate_features:
perl ./build/genFeatures.sh perl ./build/genFeatures.sh
# git add ./FEATURES.md git add ./FEATURES.md
# git commit -m "Generate FEATURES.md at $(shell date --iso=seconds)" git commit -m "Generate FEATURES.md at $(shell date --iso=seconds)"
increment_sub_version: increment_sub_version:
@echo "Incrementing sub version from $(VERSION) to $(UPDATE_SUB_VERSION)" @echo "Incrementing sub version from $(VERSION) to $(UPDATE_SUB_VERSION)"
sed -i "s/$(VERSION)/$(UPDATE_SUB_VERSION)/" mysqltuner.pl *.md sed -i "s/$(VERSION)/$(UPDATE_SUB_VERSION)/" mysqltuner.pl *.md
git add ./*.md ./mysqltuner.pl
git commit -m "Generate $(UPDATE_SUB_VERSION) sub version at $(shell date --iso=seconds)"
increment_minor_version: increment_minor_version:
@echo "Incrementing minor version from $(VERSION) to $(UPDATE_MINOR_VERSION)" @echo "Incrementing minor version from $(VERSION) to $(UPDATE_MINOR_VERSION)"
sed -i "s/$(VERSION)/$(UPDATE_MINOR_VERSION)/" mysqltuner.pl *.md sed -i "s/$(VERSION)/$(UPDATE_MINOR_VERSION)/" mysqltuner.pl *.md
git add ./*.md ./mysqltuner.pl
git commit -m "Generate $(UPDATE_SUB_VERSION) minor version at $(shell date --iso=seconds)"
increment_major_version: increment_major_version:
@echo "Incrementing major version from $(VERSION) to $(UPDATE_MAJOR_VERSION)" @echo "Incrementing major version from $(VERSION) to $(UPDATE_MAJOR_VERSION)"
sed -i "s/$(VERSION)/$(UPDATE_MAJOR_VERSION)/" mysqltuner.pl *.md sed -i "s/$(VERSION)/$(UPDATE_MAJOR_VERSION)/" mysqltuner.pl *.md
git add ./*.md ./mysqltuner.pl
git commit -m "Generate $(UPDATE_SUB_VERSION) major version at $(shell date --iso=seconds)"
push: push:
git push git push

View File

@ -1,6 +1,6 @@
# NAME # NAME
MySQLTuner 2.2.7 - MySQL High Performance Tuning Script MySQLTuner 2.2.9 - MySQL High Performance Tuning Script
# IMPORTANT USAGE GUIDELINES # IMPORTANT USAGE GUIDELINES

View File

@ -1,5 +1,5 @@
#!/usr/bin/env perl #!/usr/bin/env perl
# mysqltuner.pl - Version 2.2.8 # mysqltuner.pl - Version 2.2.9
# High Performance MySQL Tuning Script # High Performance MySQL Tuning Script
# Copyright (C) 2015-2023 Jean-Marie Renouard - jmrenouard@gmail.com # Copyright (C) 2015-2023 Jean-Marie Renouard - jmrenouard@gmail.com
# Copyright (C) 2006-2023 Major Hayden - major@mhtx.net # Copyright (C) 2006-2023 Major Hayden - major@mhtx.net
@ -57,7 +57,7 @@ use Cwd 'abs_path';
#use Env; #use Env;
# Set up a few variables for use in the script # Set up a few variables for use in the script
my $tunerversion = "2.2.8"; my $tunerversion = "2.2.9";
my ( @adjvars, @generalrec ); my ( @adjvars, @generalrec );
# Set defaults # Set defaults
@ -7357,7 +7357,7 @@ __END__
=head1 NAME =head1 NAME
MySQLTuner 2.2.8 - MySQL High Performance Tuning Script MySQLTuner 2.2.9 - MySQL High Performance Tuning Script
=head1 IMPORTANT USAGE GUIDELINES =head1 IMPORTANT USAGE GUIDELINES