Results 1 to 2 of 2
-
21st Dec 2009, 10:02 AM #1OPMember
Convert MyISAM tables to InnoDB
If you want to convert a MyISAM table to InnoDB, the process is fairly easy, but you can do something extra to speed things up. Before converting the table, adjust its order so that the primary key column is in order:
Code:ALTER TABLE tablename ORDER BY 'primary_key_column';
Code:ALTER TABLE tablename ENGINE = INNODB;
These statements are also safe in replicated environments. When you issue this statement to the master, it will begin the conversion process. Once it is complete on the master, the statement will roll down to the slaves, and they will begin the conversion as well. Keep in mind, however, that this can greatly reduce the performance of your configuration in the process.
I Havnt Written This Tutorial. Please Dont PM Me For Queries!iFlames Reviewed by iFlames on . Convert MyISAM tables to InnoDB If you want to convert a MyISAM table to InnoDB, the process is fairly easy, but you can do something extra to speed things up. Before converting the table, adjust its order so that the primary key column is in order: ALTER TABLE tablename ORDER BY 'primary_key_column'; This will pre-arrange the table so that it can be converted quickly without a lot of re-arranging required in MySQL. Then, simply change the table engine: ALTER TABLE tablename ENGINE = INNODB; Rating: 5
-
21st Dec 2009, 10:12 AM #2
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How Should I Organize My SQL Tables?
By Robin Hood in forum Web Development AreaReplies: 7Last Post: 22nd Aug 2012, 03:54 PM -
How to convert MySQL to innoDB ?
By mannNmeet in forum Web Development AreaReplies: 1Last Post: 25th Oct 2011, 08:36 AM -
How to enable InnoDB to start on startup
By Enzyme in forum Server ManagementReplies: 6Last Post: 26th Jul 2011, 04:01 PM -
Which is best for server load, Myisam or innob?
By DoctorX in forum Server ManagementReplies: 4Last Post: 20th Jul 2011, 03:50 PM -
Help with PHP & Tables
By Sponge Bob in forum Webmaster DiscussionReplies: 14Last Post: 6th May 2011, 04:53 AM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...