[Typo3] deleting all tables without the database itself

Elmar Hinz elmar.hinz at vcd-berlin.de
Tue Oct 4 18:54:44 CEST 2005


Roman S. wrote:
> Hi everbody,
> 
> I was looking for an answer but didn't find how to get this done. If I 
> want to delete all tables in a database without entering a command like 
> mysql DROP TABLE `tt_ölj`, `tx_asdf`, tx_asdf_sdf`; what can I do in 
> such a case?
> 

Write a small script: run SHOW TABLES, do some replacements on the 
result and you get an automated form of DROP TABLE `tt_ölj`, `tx_asdf`, 
tx_asdf_sdf`;

Elmar


-- 
Climate change 2005: New Orleans, Sahel, Bangladesh, Spain, Portugal, 
Austria, Swiss, France, ...
Production of CO2 is killing people.
Production of CO2 just for fun is killing people just for fun.



More information about the TYPO3-english mailing list