MySQL Forums
Forum List  »  InnoDB

Re: Using per table tablespace option
Posted by: Rafal Kedziorski
Date: May 18, 2005 01:24PM

development wrote:
> Hello all,
> As i've posted the message before few hours, I've
> partially got the answer of my problem. If i m not
> wrong then for innodb tablespace once we've
> allocated space for ibdata then we cant shrink the
> file ibdata although we are dropping some tables
> or deleting so many rows from the tables.
> now i've got the solution to use per table
> tablespace option. I wanted to ask that if i am
> enabling innodb_file_per_table option in my.cnf
> file and restarting the mysql server, all the
> newly created table will create new .ibd files,
> but what can i do for my old tables to make the
> same .ibd files and shrinking my actual ibdata
> file??

I think the best way is to export your old tables, remove them and import the exported data. Than MySQL would create the new tables with file per table.


Options: ReplyQuote

Written By
Re: Using per table tablespace option
May 18, 2005 01:24PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.