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

Bad options behaviour #662

Closed
j75 opened this issue May 26, 2023 · 3 comments
Closed

Bad options behaviour #662

j75 opened this issue May 26, 2023 · 3 comments

Comments

@j75
Copy link

j75 commented May 26, 2023

  1. mysqltuner.pl --user <user> --pass <password> --reportfile /tmp/toto issues the following error:

Can't locate object method "new" via package "Text::Template" at
/.../mysqltuner.pl line 6871 (#1)
(F) You called a method correctly, and it correctly indicated a package
functioning as a class, but that package doesn't define that particular
method, nor does any of its base classes. See perlobj.
Uncaught exception from user code:
Can't locate object method "new" via package "Text::Template" at /.../mysqltuner.pl line 6871.
main::dump_result() called at /.../mysqltuner.pl line 6969

  1. mysqltuner.pl --user <user> --pass <password> --outputfile /tmp/toto.json --json --silent => the silent option seems not to have any effect (i.e. messages are still displayed)

The script version is the latest (from the master branch).

@jmrenouard
Copy link
Collaborator

Perl Module Text::Template is required for report file
You can use your own personal template in this mode

You can try --json and redirect output into file from the command line or use --outputfile option if needed

@jmrenouard
Copy link
Collaborator

This is not a bug, this is a feature ;)

jmrenouard added a commit that referenced this issue Jun 5, 2023
Removing auto scedule pull request for CVE updates
@jmrenouard
Copy link
Collaborator

README.md updated

Important: Text::Template module is mandatory for --reportfile and/or --template options because this module is needed to generate appropriated output based on a text template.

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

2 participants