Ola, estou precisando liberar o espaço para sistema operacional apos dar o comando TRUNCATE TABLE tabelax, mesmo que as tabelas estejam limpas o banco de dados ainda esta utilizando o armazenamento e nao consigo utilizar o espaço para outras finalidades, se alguem puder me dar um norte onde acho alguma informação sobre isso fico grato.Agradeço quem puder me dar uma dica.
--
--
============================================================
JQUERY MAGAZINE > http://www.jquerymagazine.com.br
--
PHP MAGAZINE > http://www.phpmagazine.com.br
--
LISTA NODE.JS > https://groups.google.com/group/lista-nodejs?hl=pt-br
--
AJAX-BRASIL > http://groups.google.com/group/ajax-brasil
--
PYTHON-GOOGLE > http://groups.google.com.br/group/python-google
--
DOTNET-BRASIL > http://groups.google.com.br/group/dotnet_br
============================================================
---
Você recebeu essa mensagem porque está inscrito no grupo "LISTA PHP" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para listaphp+unsubscribe@googlegroups.com.
Para mais opções, acesse https://groups.google.com/d/optout.
Ola, estou precisando liberar o espaço para sistema operacional apos dar o comando TRUNCATE TABLE tabelax, mesmo que as tabelas estejam limpas o banco de dados ainda esta utilizando o armazenamento e nao consigo utilizar o espaço para outras finalidades, se alguem puder me dar um norte onde acho alguma informação sobre isso fico grato.Agradeço quem puder me dar uma dica.
To reclaim operating system disk space when
truncating an
InnoDB table, the table must be stored in its
own .ibd file. For a table to
be stored in its own .ibd
file, innodb_file_per_table must
enabled when the table is created. Additionally, there cannot be a
foreign key constraint
between the table being truncated and other tables, otherwise the
TRUNCATE TABLE operation fails. This is a
change from previous behavior, which would transform the
TRUNCATE operation to a
DELETE operation that removes all
rows and triggers ON DELETE operations on child
tables. A foreign key constraint between two columns in the same
table, however, is permitted.
When a table is truncated, it is dropped and re-created in a new
.ibd file (previous versions of
InnoDB would keep the existing
.idb file), and the freed space is returned
to the operating system. This is in contrast to truncating
InnoDB tables that are stored within the
InnoDB
system tablespace
(tables created when
innodb_file_per_table=OFF), where only
InnoDB can use the freed space after the table
is truncated.
The ability to truncate tables and return disk space to the
operating system also means that
physical backups can
be smaller. Truncating tables that are stored in the system
tablespace (tables created when
innodb_file_per_table=OFF) leaves blocks of
unused space in the system tablespace.
innodb_file_per_table para on no my.cnf-suba o banco-restaure os backups dos seus esquemas de banco de dados
Só assim consegui ter de volta o espaço dos esquemas/tabelas que foram deletadas.