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: | |
| 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 | ||
[28 Feb 2013 18:12]
Sveta Smirnova
Thank you for the report. Verified as described.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.049 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
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`;