Hallo zusammen
Wie kann ich am Besten alle innodb-tables auf einem MySql-Server leeren?
Vielen Dank.
alle Innodb tables leeren
-
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: alle Innodb tables leeren
Meinst du tatsächlich alle Tabellen oder meinst du vielleicht die Binary Logs?
Bei ersterem DROP TABLE, bei letzterem PURGE {MASTER | BINARY} LOGS [...] und http://dev.mysql.com/doc/refman/5.0/en/ ... -logs.html lesen.
Bei ersterem DROP TABLE, bei letzterem PURGE {MASTER | BINARY} LOGS [...] und http://dev.mysql.com/doc/refman/5.0/en/ ... -logs.html lesen.
Re: alle Innodb tables leeren
s/DROP/TRUNCATE/ ;)
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: alle Innodb tables leeren
DROP TABLE kommt mit anschließendem CREATE TABLE doch auf das selbe raus. ;)Joe User wrote:s/DROP/TRUNCATE/ ;)