-1

I am running Ubuntu 10.04 LTS and I'm trying to run mysqltuner but it won't work. I downloaded the script and made it executable and then i typed ./mysqltuner.pl but it gave error

./mysqltuner.pl: line 4: syntax error near unexpected token `newline'
./mysqltuner.pl: line 4: `<!DOCTYPE html>'

Does anyone know how to fix this?

Matteo
  • 37,680
  • 11
  • 100
  • 115
Trish Pham
  • 439
  • 2
  • 6
  • 13
  • There are quite a few of these, please tell us which mysqltuner.pl you are using. This one? https://github.com/rackerhacker/MySQLTuner-perl/blob/master/mysqltuner.pl – Max Dec 18 '12 at 05:13
  • Looks like you downloaded an HTML file and not an perl program. – Aea Dec 18 '12 at 05:16
  • I download from this wget http://mysqltuner.com/mysqltuner.pl – Trish Pham Dec 18 '12 at 05:21

1 Answers1

1

You probably didn't get the actual script.

Try to download https://raw.github.com/rackerhacker/MySQLTuner-perl/master/mysqltuner.pl instead

Andreas Wederbrand
  • 38,065
  • 11
  • 68
  • 78