Can not install MySQL Tuner Script on CentOS

Discussion in 'Site & Server Administration' started by тнє Sufi, Apr 27, 2012.

  1. #1
    My OS version: CENTOS 5.8 x86_64 kvm
    MySQL version: 5.1.62-cll MySQL Community Server (GPL)

    I have tried to install MySQL Tuner Script, to minimize high CPU load caused by MySQL.

    
    wget mysqltuner.pl
    chmod 0777 mysqltuner.pl
    
    Code (markup):
    Upto this, it was ok. Then when I try:

    ./mysqltuner.pl
    Code (markup):
    I get following error:
    
    root@server11 [~]# ./mysqltuner.pl
    ./mysqltuner.pl: line 4: syntax error near unexpected token `newline'
    ./mysqltuner.pl: line 4: `<!DOCTYPE html>'
    
    Code (markup):
    I also tried with:
    perl mysqltuner.pl
    Code (markup):
    I got following error:
    
    root@server11 [~]# perl mysqltuner.pl
    Bareword found where operator expected at mysqltuner.pl line 9, near "71f14ea05358fe5094b99fbbd4cf62d4fa109731"
            (Missing operator before f14ea05358fe5094b99fbbd4cf62d4fa109731?)
    syntax error at mysqltuner.pl line 5, near "html>"
    Unrecognized character \xC2 at mysqltuner.pl line 9.
    
    Code (markup):
    Any idea how can I use/install MySQL Tuner?
     
    тнє Sufi, Apr 27, 2012 IP
  2. тнє Sufi

    тнє Sufi Peon

    Messages:
    391
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just figured it out and it is working! :D
     
    тнє Sufi, Apr 27, 2012 IP
  3. ideamine

    ideamine Member

    Messages:
    83
    Likes Received:
    2
    Best Answers:
    2
    Trophy Points:
    28
    #3
    You can also use this to help mysql and server work better
     
    ideamine, May 7, 2012 IP