RE: Alter Table - InnoDB

2008-12-04 Thread Rolando Edwards
5 GB) due to wasted space from transactions and old data pages and old index pages. Give it a try and let me know if this worked. I know it will work. -Original Message- From: Chandru [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2008 7:10 AM To: Shachi Govil; Jonas Genannt

Re: Alter Table - InnoDB

2008-12-04 Thread Chandru
manually. These are created in tmp folder. > > I am not sure if restarting helps... > > Regards, > Shachi Govil > - Original Message - From: "Ananda Kumar" <[EMAIL PROTECTED]> > To: "Jonas Genannt" <[EMAIL PROTECTED]> > Cc: > Sent: Th

Re: Alter Table - InnoDB

2008-12-04 Thread Martijn Tonies
Hi, Since u have cancled the job, those in-complete temp files can be deleted from the file system. ok - but I'm using InnoDB. The IBdata file is bumped up. There are no temp files on the database directory. What's the problem with a larger ibdata-file? If the index is dropped, there is free

Re: Alter Table - InnoDB

2008-12-04 Thread Jonas Genannt
Hello Shachi, > I thought you always have to go to the physical location and delete > the tmp files manually. These are created in tmp folder. > > I am not sure if restarting helps... since I am using InnoDB, there is no tmp folder. The Ibdata file after killing alter table commands: -rw-rw

Re: Alter Table - InnoDB

2008-12-04 Thread Jonas Genannt
Hi Ananda, > So, now u dont have free space in your file system. > Is this a production db. > I think, restarting the db, should not cause any harm. Which version > of mysql. no free space it not my problem. I have only noticed that ibdata file uses more space than before. Yes this is an producti

Re: Alter Table - InnoDB

2008-12-04 Thread Shachi Govil
nt" <[EMAIL PROTECTED]> Cc: Sent: Thursday, December 04, 2008 4:09 PM Subject: Re: Alter Table - InnoDB So, now u dont have free space in your file system. Is this a production db. I think, restarting the db, should not cause any harm. Which version of mysql. regards anandkl O

Re: Alter Table - InnoDB

2008-12-04 Thread Ananda Kumar
So, now u dont have free space in your file system. Is this a production db. I think, restarting the db, should not cause any harm. Which version of mysql. regards anandkl On 12/4/08, Jonas Genannt <[EMAIL PROTECTED]> wrote: > > Hi Ananda, > > > Since u have cancled the job, those in-complete te

Re: Alter Table - InnoDB

2008-12-04 Thread Jonas Genannt
Hi Ananda, > Since u have cancled the job, those in-complete temp files can be > deleted from the file system. ok - but I'm using InnoDB. The IBdata file is bumped up. There are no temp files on the database directory. Greets, Jonas -- MySQL General Mailing List For list archives: http

Re: Alter Table - InnoDB

2008-12-04 Thread Ananda Kumar
Hi Jonas, When ever an alter table command is executed on mysql tables, mysql creates a temp file with all the data + the current table. Once the alter table command is done, it will drop the current table and rename the new temp file to the current table, that the reason the disk usage goes high.

Alter Table - InnoDB

2008-12-04 Thread Jonas Genannt
Hello, we having an 60 GB InnoDB database. The table with the problem is about 12GB. On of our scripts has got a problem and run 60 times an alter table: ALTER TABLE `foo` ADD INDEX ( `bar` ) ; We had to kill the alter table commands with kill on the mysql console. Now we have one index on the