Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysqldumpslow: fix detection of slow log path #213

Closed
wants to merge 1 commit into from

Conversation

cpaelzer
Copy link

Without an argument mysqldumpslow tries to derive the path of the
slow log from my_print_defaults, but that lists slow log like

$ my_print_defaults mysqld
...
--slow_query_log_file=/var/log/mysql/mysql-slow.log

Fix the script to search with underscores instead of a hyphen.
That way mysqldumpslow is most configurations will work without extra
arguments.

Fixes: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/819535

Signed-off-by: Christian Ehrhardt christian.ehrhardt@canonical.com

Without an argument mysqldumpslow tries to derive the path of the
slow log from my_print_defaults, but that lists slow log like

  $ my_print_defaults mysqld
  ...
  --slow_query_log_file=/var/log/mysql/mysql-slow.log

Fix the script to search with underscores instead of a hyphen.
That way mysqldumpslow is most configurations will work without extra
arguments.

Fixes: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/819535

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
@mysql-oca-bot
Copy link

Hi, thank you for submitting this pull request. In order to consider your code we need you to sign the Oracle Contribution Agreement (OCA). Please review the details and follow the instructions at http://www.oracle.com/technetwork/community/oca-486395.html
Please make sure to include your MySQL bug system user (email) in the returned form.
Thanks

@mysql-oca-bot
Copy link

Hi, there was no response to our request to sign an OCA or confirm the code is submitted under the terms of the OCA. As such this request will be closed.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants