adding params to those already in .my.cnf #24

Closed
jlecour opened this Issue Oct 10, 2012 · 1 comment

2 participants

@jlecour

Hi,

I have a MySQL instance running on a custom port (3307). I have a ~/.my.cnf file with this

[client]
user=my_username
password=my_password
host=127.0.0.1

I've tried to do these lines, but none work :

  • ./mysqltuner.pl --port 3307
  • ./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.

@major
Owner

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?

@major major closed this Feb 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment