Get the book

Go Back   Zen Cart Support > Community Contributed Add-Ons > All Other Contributions/Addons

All Other Contributions/Addons Discussion of addons not categorized above

Reply
 
Thread Tools Display Modes
Old 7th January 2009, 02:37 PM   #1
data_digger
Zen Follower
 
Join Date: Jan 2009
Posts: 185
Default Change Storage Engine ( MyISAM to/from InnoDB converter)

With this contribution You can with just one click change storage engine of Your database (well, not really database, but all tables in it) from MyISAM or InnoDB to InnoDB or MyISAM.

Change? Why the hell anyone would like to change MyISAM to InnoDB?
Good question. Because it's faster. You can read more here:
http://www.data-diggers.com/innodb_vs_myisam

You can download this contribution from:
http://www.data-diggers.com/contribs...ne_current.zip
It's not yet available from www.zen-cart.com since I just submitted it and it has not yet been reviewed.

Installation Instructions
Installation is very easy. This contribution does not overwrite any files, so You just have to copy&paste 'admin' directory.
__________________
data_digger,
Query Cache v1.5 Reduce query count by 80% | Randomized Tests
www.data-diggers.com
data_digger is offline   Reply With Quote
Old 8th January 2009, 10:50 AM   #2
HeathenMagic
Zen Follower
 
Join Date: May 2005
Location: England
Posts: 370
Default Re: Change Storage Engine ( MyISAM to/from InnoDB converter)

Hello there,

This contribution looks really good. I noticed on our site, that we get the following error, at which point it stops doing its thing. Not sure if I can just change the FULLTEXT entries manually to get rid of the error.

Quote:
1214 The used table type doesn't support FULLTEXT indexes
in:
[ALTER TABLE zen_configuration ENGINE = InnoDB]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Regards,

Heathenmagic
HeathenMagic is offline   Reply With Quote
Old 8th January 2009, 03:43 PM   #3
data_digger
Zen Follower
 
Join Date: Jan 2009
Posts: 185
Default Re: Change Storage Engine ( MyISAM to/from InnoDB converter)

I'm sorry, I completely forgot that InnoDB tables don't allow FULLTEXT indexes. I'll try to upload tomorrow new version of this contribution that will ignore tables with FULLTEXT indexes.
__________________
data_digger,
Query Cache v1.5 Reduce query count by 80% | Randomized Tests
www.data-diggers.com
data_digger is offline   Reply With Quote
Old 9th January 2009, 09:14 AM   #4
data_digger
Zen Follower
 
Join Date: Jan 2009
Posts: 185
Default Re: Change Storage Engine ( MyISAM to/from InnoDB converter)

Ok, v.1.1 is available from the same address:
Change Storage Engine v1.1

It'll ignore MyISAM tables with FULLTEXT indexes.
__________________
data_digger,
Query Cache v1.5 Reduce query count by 80% | Randomized Tests
www.data-diggers.com
data_digger is offline   Reply With Quote
Old 1st February 2009, 06:34 AM   #5
yellow1912
Totally Zenned
 
Join Date: Oct 2006
Posts: 5,464
Default Re: Change Storage Engine ( MyISAM to/from InnoDB converter)

http://www.mikebernat.com/blog/MySQL_-_InnoDB_vs_MyISAM

Note note note: innodb uses 5 or 6 times more space than myisam

myisam is usually faster for "select", so some tables should stay the way they are now. Log tables etc should be converted to myisam.
__________________
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
yellow1912 is offline   Reply With Quote
Old 1st February 2009, 11:45 AM   #6
data_digger
Zen Follower
 
Join Date: Jan 2009
Posts: 185
Default Re: Change Storage Engine ( MyISAM to/from InnoDB converter)

At least so it is said. In practice, all recent test I've seen show that InnoDB is faster in selects then MyISAM.
Have You found any tests that suggest that myisam outperforms innodb?
Also, I'm curious about this '5 or 6 more space' thing. I've checked my tables and innodb usually takes up to 50% more space.

As for log tables, one should consider Archive storage engine (introduced in MySQL 5) instead of MyISAM.
__________________
data_digger,
Query Cache v1.5 Reduce query count by 80% | Randomized Tests
www.data-diggers.com
data_digger is offline   Reply With Quote
Old 12th June 2009, 06:01 PM   #7
Meshach
Zen Follower
 
Meshach's Avatar
 
Join Date: Jun 2008
Location: USA
Posts: 206
Default Re: Change Storage Engine ( MyISAM to/from InnoDB converter)

Thanks for this addon!

It seems the site runs faster, possibly just psychological though.
__________________

Meshach is offline   Reply With Quote
Old 24th June 2009, 11:06 PM   #8
shrimp-gumbo-mmmhhh
Totally Zenned
 
shrimp-gumbo-mmmhhh's Avatar
 
Join Date: Jun 2007
Posts: 964
Default Re: Change Storage Engine ( MyISAM to/from InnoDB converter)

Quote:
Originally Posted by Meshach View Post
Thanks for this addon!

It seems the site runs faster, possibly just psychological though.

How is this working for you Meshack? Have you run into any problems? Anybody else convert over?

Shrimp
shrimp-gumbo-mmmhhh is offline   Reply With Quote
Old 24th June 2009, 11:08 PM   #9
Meshach
Zen Follower
 
Meshach's Avatar
 
Join Date: Jun 2008
Location: USA
Posts: 206
Default Re: Change Storage Engine ( MyISAM to/from InnoDB converter)

It's working great.
__________________

Meshach is offline   Reply With Quote
Old 21st November 2009, 12:43 PM   #10
karimm
New Zenner
 
Join Date: Nov 2008
Posts: 40
Default Re: Change Storage Engine ( MyISAM to/from InnoDB converter)

Hello,

I recieve the following error when i click "change storage engine"

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TABLES WHERE Table_type LIKE 'BASE TABLE'' at line 1
in:
[SHOW FULL TABLES WHERE Table_type LIKE 'BASE TABLE']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

It this because the script is not compatible with my sql version ?

I use mysql 4.1.22
PHP 5.2.11

Any suggestions ?

Regards,

Martijn
karimm is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
1030 Got error 134 from storage engine susb8383 General Questions 6 12th May 2010 07:02 AM
1030 Got error 122 from storage engine?!?!help! mieego81 General Questions 6 7th November 2009 02:45 PM
1030 Got error 134 from storage engine john-john Installing on a Linux/Unix Server 3 1st August 2008 08:54 PM
1030 Got Error 128 From Storage Engine ESO General Questions 2 11th March 2008 05:31 PM
error message 12 from storage engine styrax Basic Configuration 2 4th November 2007 02:07 PM


All times are GMT +1. The time now is 04:11 PM.

Learn tips, tricks & secrets for your Zen Cart™
Sign up for our FREE Newsletter

Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content and Graphics Copyright (c) 2006, 2007, 2008, 2009, 2010 Zen Ventures, LLC - all rights reserved
Get Zen Cart E-Commerce Shopping Cart at SourceForge.net. Fast, secure and Free Open Source software downloads