Bug #68524 mysqldumpslow uses not longer supported option from my.cnf
Submitted: 28 Feb 2013 14:21 Modified: 28 Feb 2013 18:12
Reporter: Peter Weibbrecht Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: mysqldump Command-line Client Severity:S3 (Non-critical)
Version:5.5.29, 5.5.31, 5.6.11, 5.7.1 OS:Any
Assigned to: CPU Architecture:Any
Tags: Contribution, patch
Triage: Needs Triage: D3 (Medium)

[28 Feb 2013 14:21] Peter Weibbrecht
Description:
mysqldumpslow try to determine the folder with slow_query Logfiles from my_print_defaults with an old, not longer supported option:
--log-slow-queries

in 5.5 the correct option is:
--slow_query_log_file

How to repeat:
[mdepser@peters_redhat63 ~]$ mysqldumpslow 
Can't find '/apps/opt/mdepser/data/*-slow.log'
[mdepser@peters_redhat63 ~]$ mysqldumpslow 
Can't find '/apps/opt/mdepser/data/*-slow.log'

Suggested fix:
--- mysqldumpslow       2013-02-28 15:14:11.555555315 +0100
+++ mysqldumpslow.ok    2013-02-28 15:15:24.567744785 +0100
@@ -59,7 +59,7 @@
     warn "basedir=$basedir\n" if $opt{v};
 
     my $datadir = ($defaults =~ m/--datadir=(.*)/)[0];
-    my $slowlog = ($defaults =~ m/--log-slow-queries=(.*)/)[0];
+    my $slowlog = ($defaults =~ m/--slow_query_log_file=(.*)/)[0];
     if (!$datadir or $opt{i}) {
        # determine the datadir from the instances section of /etc/my.cnf, if any
        my $instances  = `my_print_defaults instances`;
[28 Feb 2013 18:12] Sveta Smirnova
Thank you for the report.

Verified as described.