If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > alter table myisam to innodb taking really long

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-24-08, 19:58
niyogi niyogi is offline
Registered User
 
Join Date: Feb 2008
Posts: 2
alter table myisam to innodb taking really long

Hi folks

I'm trying to get a table's engine changed from myisam to innodb. It's a table about 22GB in size.

It's taken about an hour so far and is still churning. Any idea how long this can take?

Running MySQL 4.1 on this box.

Thanks in advance for your assistance!
Reply With Quote
  #2 (permalink)  
Old 02-25-08, 03:35
aschk aschk is offline
Registered User
 
Join Date: Mar 2007
Location: 636f6d7075746572
Posts: 770
Unfortunately I have no idea, and i would guess a long time perhaps?
Did it finish in the end? How long did it take? Any information you have i'm sure would be of use to others.
Reply With Quote
  #3 (permalink)  
Old 02-25-08, 07:49
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Just to satisfy my own curiosity...
What kind of information are you storing in a 22Gb table?!

How long does a simple "SELECT *" take on the table in question?
__________________
George
Twitter | Blog
Reply With Quote
  #4 (permalink)  
Old 02-25-08, 12:18
niyogi niyogi is offline
Registered User
 
Join Date: Feb 2008
Posts: 2
I actually goofed - the size of the table is closer to 2GB.

It never finished (waited 6 hours). So, we renamed the table instead, created a new table of the original name, changed the engine to innodb, and then ran an "insert into table select * from original_table" which took long but we could get a pulse on where we stood on things.

I'm sure that wasn't the best idea - but any thoughts?
Reply With Quote
  #5 (permalink)  
Old 02-25-08, 12:29
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,262
changing to a new table is always going to be smarter than attempting to change in place. Personally I never even thought any one would try that.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On