Unix Technical Forum

Help on Shrink IBDATA1 file

This is a discussion on Help on Shrink IBDATA1 file within the MySQL forums, part of the Database Server Software category; --> How can I shrink the file IBDATA1 on MYSQL directory? I use windows 2003. Thanks a lot. Roberto...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 08:32 AM
Roberto Rasto
 
Posts: n/a
Default Help on Shrink IBDATA1 file

How can I shrink the file IBDATA1 on MYSQL directory?
I use windows 2003.

Thanks a lot.

Roberto


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 08:32 AM
Bill Karwin
 
Posts: n/a
Default Re: Help on Shrink IBDATA1 file

Roberto Rasto wrote:
> How can I shrink the file IBDATA1 on MYSQL directory?
> I use windows 2003.


This is a common complaint about MySQL.
The following is the only way to shrink the file:

1. Back up all databases that use InnoDB tables.
2. Drop all InnoDB tables.
3. Remove the IBDATA1 file manually.
4. Restore all InnoDB tables from your backups. This recreates the
IBDATA1 file and fills it.

This is very inconvenient, and it has been logged as a bug, but there is
no other solution at this time.

See discussion at http://bugs.mysql.com/bug.php?id=1341

Regards,
Bill K.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:42 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com