From b0848e5cc595e96be08e30c9b3d48f4bf55599dd Mon Sep 17 00:00:00 2001 From: jfcoz Date: Fri, 3 Jun 2016 08:33:02 +0200 Subject: [PATCH] add skip-name-resolve recommandation --- mysqltuner.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mysqltuner.pl b/mysqltuner.pl index 105a185..6a89730 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -2501,6 +2501,14 @@ sub mysql_stats { "Aborted connections: $mycalc{'pct_connections_aborted'}% ($mystat{'Aborted_connects'}/$mystat{'Connections'})"; } + # name resolution + if ($result{'Variables'}{'skip_name_resolve'} eq 'OFF') { + badprint +"name resolution is active : a reverse name resolution is made for each new connection and can reduce performance"; + push( @generalrec, + "Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1" ); + } + # Query cache if ( !mysql_version_ge(4) ) {