Assembla home | Assembla project page
 

Changeset 4

Show
Ignore:
Timestamp:
06/01/07 01:19:01 (1 year ago)
Author:
major
Message:

Script now requires MySQL 4.1 or higher (4.0 is EOL, and support for that is lame...)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mysqltuner.pl

    r3 r4  
    106106sub validate_mysql_version { 
    107107    ($mysqlvermajor,$mysqlverminor) = $myvar{'version'} =~ /(\d)\.(\d)/; 
    108     if ($mysqlvermajor < 4) { 
    109         print $bad." This script will not work with MySQL < 4.0\n"; 
     108    if ($mysqlvermajor < 4 || ($mysqlvermajor == 4 && $mysqlverminor < 1)) { 
     109        print $bad." This script will not work with MySQL < 4.1\n"; 
    110110        exit 0; 
    111111    } elsif ($1 == 4 && $2 == 0) { 
     
    500500# BEGIN 'MAIN' 
    501501# --------------------------------------------------------------------------- 
    502 print "------------------------------------------------------------------------------\n". 
    503     $info." MySQL High-Performance Tuner - Major Hayden <major.hayden\@rackspace.com>\n"; 
     502print $info." MySQL High-Performance Tuner - Major Hayden <major.hayden\@rackspace.com>\n"; 
    504503mysql_install_ok;               # Check to see if MySQL is installed 
    505504os_setup;                       # Set up some OS variables 
     
    518517check_other_buffers; 
    519518performance_options; 
    520 print "------------------------------------------------------------------------------\n"; 
    521519# --------------------------------------------------------------------------- 
    522520# END 'MAIN'