MySql ibdata1 compact space

MySql ibdata1 compact space

am 26.05.2006 11:08:14 von bemodica

Hello I have a problem with mysql.

Using the tables of type INNODB, mysql it has created the archives
(ibdata1) whose dimensions exceed the 3G.

I have cancelled all the database but the occupied space is remained
the same one. How I can make in order to compattare this space?

Thanks

Re: MySql ibdata1 compact space

am 26.05.2006 18:07:49 von Bill Karwin

bemodica@esact.it wrote:
> Hello I have a problem with mysql.
>
> Using the tables of type INNODB, mysql it has created the archives
> (ibdata1) whose dimensions exceed the 3G.
>
> I have cancelled all the database but the occupied space is remained
> the same one. How I can make in order to compattare this space?

If you've dropped all the InnoDB tables, you can stop the MySQL Server,
manually delete ibdata1 and the InnoDB log files, and then restart MySQL
Server. MySQL Server will recreate a smaller ibdata1 file when it restarts.

If you have any InnoDB tables you want to keep, you must back them up
first with mysqldump, drop them, and restore them afterward.

See http://bugs.mysql.com/bug.php?id=1287

Regards,
Bill K.

Re: MySql ibdata1 compact space

am 29.05.2006 18:17:38 von bemodica

Thanks for the answer