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 > difference? ANALYSE, CHECK, REPAIR, OPTIMIZE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-20-04, 05:28
roga roga is offline
Registered User
 
Join Date: Jan 2004
Location: Germany
Posts: 17
difference? ANALYZE, CHECK, REPAIR, OPTIMIZE

Hi!

I'm confused about the maintenance functions of MySQL. There are ANALYZE, CHECK, REPAIR and OPTIMIZE. So what are the differences? Which one should I use for nightly maintenance?

Thanks in advance.

roga

Last edited by roga; 01-20-04 at 05:33.
Reply With Quote
  #2 (permalink)  
Old 01-20-04, 10:29
bstjean bstjean is offline
Registered User
 
Join Date: Sep 2002
Location: Montreal, Canada
Posts: 219
Re: difference? ANALYZE, CHECK, REPAIR, OPTIMIZE

Quote:
Originally posted by roga
Hi!

I'm confused about the maintenance functions of MySQL. There are ANALYZE, CHECK, REPAIR and OPTIMIZE. So what are the differences? Which one should I use for nightly maintenance?

Thanks in advance.

roga
ANALYZE is used to update the statistics table so MySQL uses the indexes more intelligently

REPAIR is used to repair corrupted tables

OPTIMIZE is used to "defragment" the tables (after lots of INSERT/UPDATE/DELETE)

CHECK is used to verify is a table is corrupted in any way... Useful to verify that after a server is stopped abruptely, all tables were closed properly
Reply With Quote
  #3 (permalink)  
Old 01-20-04, 13:36
roga roga is offline
Registered User
 
Join Date: Jan 2004
Location: Germany
Posts: 17
Thank you!
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