MySQLTuner 0.8.0
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
MySQLTuner 0.8.0
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
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
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
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
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