I think that your updated documentation is missing the --defaults-config parameter. Your example probably should read:
sudo ./mysqltuner.pl --defaults-file=/etc/mysql/debian.cnf
Running that command tells me that "You probably did not get enough privileges for running MySQLTuner ...". Here is the output with verbose and debug turned on:
>> MySQLTuner 1.7.13 - Major Hayden <ma...@mhtx.net>
>> Bug reports, feature requests, and downloads at http://mysqltuner.com/
>> Run with '--help' for additional options and output filtering
[DG] /usr/bin/curl is available.
[DG] /usr/bin/curl -m 3 -silent 'https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl' 2>/dev/null | grep 'my $tunerversion'| cut -d\" -f2
[DG] VERSION: 1.7.13
[DG] Remote data: 1.7.13
[OK] You have the latest version of MySQLTuner(1.7.13)
[DG] MySQL Client: /usr/bin/mysql would have been started with the following arguments:
[DG] MySQL Client: /usr/bin/mysql
[DG] defaults file detected: /etc/mysql/debian.cnf
[DG] MySQL Client Default File: /etc/mysql/debian.cnf
[DG] MySQL FINAL Client : /usr/bin/mysql --defaults-file=/etc/mysql/debian.cnf
[DG] MySQL Admin FINAL Client : /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf
[DG] Physical Memory: 67318554624
[DG] Swap Memory: 1023406080
[DG] PERFORM: SELECT VERSION()
[!!] failed to execute: SELECT VERSION()
[!!] FAIL Execute SQL / return code: 256
[DG] CMD : /usr/bin/mysql
[DG] OPTIONS: --defaults-file=/etc/mysql/debian.cnf
[DG] ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[DG] select_array: return code : 256
[!!] You probably did not get enough privileges for running MySQLTuner ...
Thanks,
Francois
--
Follow Security Onion on Twitter!
https://twitter.com/securityonion
---
You received this message because you are subscribed to the Google Groups "security-onion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to security-onio...@googlegroups.com.
To post to this group, send email to securit...@googlegroups.com.
Visit this group at https://groups.google.com/group/security-onion.
For more options, visit https://groups.google.com/d/optout.