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

when file from mysql_read_default_file is missing there is no error for a missing file #317

Open
duronrulez opened this issue Oct 1, 2019 · 0 comments

Comments

@duronrulez
Copy link

it would be great if the mysql_read_default_file option actually checks if there is a file existing in that location, and throw the appropriate error.

Its a dumb mistake not to check yourself, but i've lost about 10-15 minutes until i figured out that the file is missing as the error was not very helpful (exerpt from pt-online-schema-change tool):

DBI connect(';mysql_read_default_file=/xxx/.my.cnf;host=xxx;mysql_read_default_group=client','',...) failed: Access denied for user 'xxx'@'xxx' (using password: NO) at /usr/bin/pt-show-grants line 1367.

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

No branches or pull requests

1 participant