I have a MySQL instance running on a custom port (3307). I have a ~/.my.cnf file with this
I've tried to do these lines, but none work :
./mysqltuner.pl --port 3307
./mysqltuner.pl --port 3307 --user my_username --pass my_password
./mysqltuner.pl --port=3307 --user=my_username --pass=my_password
I get this error :
[!!] Attempted to use login credentials, but they were invalid
I can't use mysqltuner.pl unless I add the port in my .my.cnf file.
I definitely can add this in the config file, but since I use multiple instances, I like to add the port param in the command line, not in the config.
I guess it would be good to use params found in the file, then override them with command line arguments.
Thanks for mysqltuner.pl, it's a great tool.
Hey @jlecour. Sorry for the long delay in reviewing this ticket. The port functionality is already in the script. Would you be able to retest using a custom port now?