alle Innodb tables leeren

MySQL, PostgreSQL, SQLite
Post Reply
bernie_zh
Posts: 5
Joined: 2004-06-22 12:34
 

alle Innodb tables leeren

Post by bernie_zh »

Hallo zusammen

Wie kann ich am Besten alle innodb-tables auf einem MySql-Server leeren?

Vielen Dank.
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: alle Innodb tables leeren

Post by Roger Wilco »

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.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: alle Innodb tables leeren

Post by Joe User »

s/DROP/TRUNCATE/ ;)
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings 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.
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: alle Innodb tables leeren

Post by Roger Wilco »

Joe User wrote:s/DROP/TRUNCATE/ ;)
DROP TABLE kommt mit anschließendem CREATE TABLE doch auf das selbe raus. ;)
Post Reply