MySQLTuner 0.8.0

Requests for RPMS, or new coding projects related to server administration, Plesk, security, or anything else you can think of.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

MySQLTuner 0.8.0

Unread post by breun »

I recently found this cute little MySQL tuning script called MySQLTuner. It's Plesk-ready: it reads the MySQL login credentials from /etc/psa/.psa.shadow if that file exists. It's just a single file Perl script, but I thought it would be nice if this was packaged.
Lemonbit Internet Dedicated Server Management
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

I already sent in my first patch against MySQLTuner 0.8.0. When using color mode everything shows up as 'OK'. Just a copy/paste bug I guess.

Code: Select all

--- mysqltuner.pl.orig  2008-02-01 01:56:25.000000000 +0100
+++ mysqltuner.pl       2008-02-07 16:55:39.000000000 +0100
@@ -77,8 +77,8 @@
 
 # Setting up the colors for the print styles
 my $good = ($opt{nocolor} == 0)? "[\e[00;32mOK\e[00m]" : "[OK]" ;
-my $bad = ($opt{nocolor} == 0)? "[\e[00;31mOK\e[00m]" : "[!!]" ;
-my $info = ($opt{nocolor} == 0)? "[\e[00;34mOK\e[00m]" : "[--]" ;
+my $bad = ($opt{nocolor} == 0)? "[\e[00;31m!!\e[00m]" : "[!!]" ;
+my $info = ($opt{nocolor} == 0)? "[\e[00;34m--\e[00m]" : "[--]" ;
 
 # Functions that handle the print styles
 sub goodprint { print $good." ".$_[0] unless ($opt{nogood} == 1); }
Lemonbit Internet Dedicated Server Management
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

Unread post by Highland »

0.8.5 is out with your fixes in them
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

Yeah, I got an e-mail and found my name in the release post: http://rackerhacker.com/2008/02/11/mysq ... available/ :)
Lemonbit Internet Dedicated Server Management
Post Reply