Adding information about checks perform by MySQLTuner

This commit is contained in:
Jean-Marie RENOUARD 2015-08-18 18:37:59 +02:00
parent cd9aceb27a
commit 7497c4732e
2 changed files with 55 additions and 12 deletions

View file

@ -1,6 +1,39 @@
## MySQLTuner checks & logic ## MySQLTuner checks & logic
* Get total RAM/swap * Get total RAM/swap
* EOL MySQL version check
* 32-bit w/>2GB RAM check
* Get storage engine counts/stats
* Check for DB engines that are enabled but unused
* Look for fragmented tables
* Look for auto-increments near capacity
* Calculations
* Has server answered any queries?
*
## MySQLTuner steps
* Header Print
* Get login information
* Set up some OS variables
* Toss variables/status into hashes
* Get information about the tuning connexion
* Check current MySQL version
* Suggest 64-bit upgrade
* Show enabled storage engines
* Show informations about databases (option: --dbstat)
* Show informations about indexes (option: --idxstat)
* Display some security recommendations
* Calculate everything we need
* Print the server stats
* Print InnoDB stats
* Print replication info
* Make recommendations based on stats
* Close reportfile if needed
* Dump result if debug is on
## MySQLTuner get login information steps
* Is a login possible? * Is a login possible?
* Force socket? * Force socket?
* Remote connection? * Remote connection?
@ -14,18 +47,28 @@
* If working, and .my.cnf isn't there, **WARNING** * If working, and .my.cnf isn't there, **WARNING**
* If working, and .my.cnf is there, okay * If working, and .my.cnf is there, okay
* Prompt for creds on the console * Prompt for creds on the console
* Security checks
## MySQLTuner security checks
* Is anonymous user present? * Is anonymous user present?
* Users without passwords * Users without passwords
* Users w/username as password * Users w/username as password
* Users w/o host restriction * Users w/o host restriction
* Weak password check (possibly using cracklib later?) * Weak password check (possibly using cracklib later?)
* EOL MySQL version check * Using basic_passwords.txt as password database
* 32-bit w/>2GB RAM check * Password list checks can be avoid (option: --skippassword)
* Get storage engine counts/stats
* Check for DB engines that are enabled but unused ## MySQLTuner database information
* Look for fragmented tables * Rows number
* Look for auto-increments near capacity * Total size
* Calculations * Data size
* Has server answered any queries? * Percentage of data size
* * Index size
* Percentage of index size
## MySQLTuner index information
* Top 10 worth selectivity index
* Index Cardinality
* Index Selectivity
* Misc information about index definition
* Misc information about index size

View file

@ -30,7 +30,7 @@
# Everett Barnes Tom Krouper Gary Barrueto # Everett Barnes Tom Krouper Gary Barrueto
# Simon Greenaway Adam Stein Isart Montane # Simon Greenaway Adam Stein Isart Montane
# Baptiste M. Cole Turner Major Hayden # Baptiste M. Cole Turner Major Hayden
# Joe Ashcraft Jean-Marie Renouard # Joe Ashcraft Jean-Marie Renouard
# #
# Inspired by Matthew Montgomery's tuning-primer.sh script: # Inspired by Matthew Montgomery's tuning-primer.sh script:
# http://forge.mysql.com/projects/view.php?id=44 # http://forge.mysql.com/projects/view.php?id=44
@ -1730,7 +1730,7 @@ mysql_innodb; # Print InnoDB stats
get_replication_status; # Print replication info get_replication_status; # Print replication info
make_recommendations; # Make recommendations based on stats make_recommendations; # Make recommendations based on stats
close_reportfile; # Close reportfile if needed close_reportfile; # Close reportfile if needed
dump_result; # Dump result dump_result; # Dump result if debug is on
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# END 'MAIN' # END 'MAIN'
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------