store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Tue May 21, 2013 4:36 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 4 posts ] 
Author Message
 Post subject: MySQLTuner 2
Unread postPosted: Sun Aug 01, 2010 5:37 am 
Offline
Forum Regular
Forum Regular

Joined: Sun Jul 12, 2009 1:33 pm
Posts: 158
Would you consider a switch to MySQLTuner 2 particularly since the original developer said that he doesn't have the time to maintain V1 anymore back in January 2010?

Seems some interesting developments are being put into v2.

Thanks


Top
 Profile  
 
 Post subject: Re: MySQLTuner 2
Unread postPosted: Tue Aug 10, 2010 4:47 am 
Offline
Forum Regular
Forum Regular

Joined: Wed Jan 02, 2008 3:21 pm
Posts: 515
Location: United Kingdom
dayo: There is a typo in the link posted, should be: https://launchpad.net/mysqltuner - would be interested in seeing the project continue. Might be worth reading Major Hayden's Blog: http://blog.mysqltuner.com/2010/01/sear ... /#comments - some folks seem to have issue with its future under Pythian (?) - its gone quiet the past couple of months though.

The output of the 2.1 (Sheeri Cabral) version is different from 1.1.1 (Major Hayden) version, although the same info is there, no recommendations are made - which is the key to its popularity. Anyone else taken a look?

My biggest issue with current (1.1.1) version is InnoDB tables no longer support optimize (using recreate + analyze instead) so the MySQL Tuner report: "Run OPTIMIZE TABLE to defragment tables for better performance" is misleading.


Top
 Profile  
 
 Post subject: Re: MySQLTuner 2
Unread postPosted: Wed Aug 11, 2010 2:19 am 
Offline
Forum Regular
Forum Regular

Joined: Sun Jul 12, 2009 1:33 pm
Posts: 158
Probably best to stick with the 1.x branch when all is said and done.


Top
 Profile  
 
 Post subject: Re: MySQLTuner 2
Unread postPosted: Tue Aug 31, 2010 12:48 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed Jan 02, 2008 3:21 pm
Posts: 515
Location: United Kingdom
Following an earlier post where I mentioned:
Quote:
"My biggest issue with current (1.1.1) version is InnoDB tables no longer support optimize (using recreate + analyze instead) so the MySQL Tuner report: "Run OPTIMIZE TABLE to defragment tables for better performance" is misleading."

I discovered a simple solution was to alter line 473 of mysqltuner from:
Code:
$fragtables = `mysql $mysqllogin -Bse "SELECT COUNT(TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema','mysql') AND Data_free > 0 AND NOT ENGINE='MEMORY';"`;

To:
Code:
$fragtables = `mysql $mysqllogin -Bse "SELECT COUNT(TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema','mysql') AND Data_free > 0 AND NOT ENGINE='MEMORY' AND NOT ENGINE='InnoDB';"`;

Essentially removing InnoDB tables from the fragmentation check. No doubt there is a better way... but the stuff I need to focus on uses MyISAM and this might be useful to others.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 4 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group