pt_variable_advisor

Summary
pt_variable_advisor
Functions
main
get_variablesGet SHOW VARIABLES from MySQL or a file.
print_advicePrint information about rules that matched.
_d

Functions

main

sub main

get_variables

sub get_variables

Get SHOW VARIABLES from MySQL or a file.

Parameters

%argsArguments

Required Arguments

source”mysql” or a file name

Optional Arguments

dbhdbh if source==”mysql”
TextResultSetParserTextResultSetParser object if source==file

Returns

Hashref of SHOW /40003 GLOBAL/ VARIABLES values.

print_advice

sub print_advice

Print information about rules that matched.

Parameters

%argsArguments

Required Arguments

adviceArrayref of rule IDs, returned by Advisor::run_rules()
AdvisorAdvisor object
OptionParserOptionParser object

_d

sub _d
sub main
sub get_variables
Get SHOW VARIABLES from MySQL or a file.
sub print_advice
Print information about rules that matched.
sub _d
TextResultSetParser converts a text result set to a data struct like DBI::selectall_arrayref().
sub run_rules
Run all rules from all advisors loaded ealier.
Advisor loads, checks, and runs rules for the various mk-*-advisor tools.
OptionParser parses command line options from a tool’s POD.
Close