13 messages in com.mysql.lists.mysqlRe: best way to wipe info
FromSent OnAttachments
Xah Lee19 May 1999 02:33 
Graeme B. Davis19 May 1999 06:33 
Fraser MacKenzie19 May 1999 06:38 
glen19 May 1999 06:42 
Piet Wesselman19 May 1999 06:56 
Paul DuBois19 May 1999 07:02 
jkr...@murl.com19 May 1999 07:31 
unkn...@riverstyx.net19 May 1999 08:15 
Xah Lee19 May 1999 21:08 
Thimble Smith19 May 1999 21:27 
Paul DuBois19 May 1999 21:28 
Sasha Pachev19 May 1999 21:53 
Graeme B. Davis20 May 1999 07:33 
Subject:Re: best way to wipe info
From:Sasha Pachev (sas@direct1.com)
Date:05/19/1999 09:53:25 PM
List:com.mysql.lists.mysql

Xah Lee wrote:

Many people suggested:

DELETE FROM tablename

Please note that my question asked for how to delete a database, not a table. Linux ignoramuses, please pay attention.

Here's the question again: What is the 'best' (i.e. proper, standard, scalable, expedient etc.) way to delete all info in a given database but keeps the schema? (in mysql)

(Btw, I'm aware that one can delete certain files in mysql data directories as a solution. My question stands as it is.)

Write a perl script or a C program that will first execute "show tables", then for each table execute "delete from $table"