mysql --user=YOUR_USERNAME --password=YOUR_PASSWORD -BNe "show tables" YOUR_DBSCHEMA_NAME | tr '\n' ',' | sed -e 's/,$//' | awk '{print "SET FOREIGN_KEY_CHECKS = 0;DROP TABLE IF EXISTS " $1 ";SET FOREIGN_KEY_CHECKS = 1;"}' | mysql --user=YOUR_USERNAME --password=YOUR_PASSWORD YOUR_DBSCHEMA_NAME
via http://knaddison.com/technology/mysql-drop-all-tables-database-using-single-command-line-command (in the comments) To listen to his voice one more time, follow these links:
|
|
|
What do the Obama Administration, Duke University, Rutgers University, The Economist Magazine, the United Nations, Sony and Warner Brothers have in common? They are all using the Drupal Content Management System
You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialise correctly.
Benjamin Doherty at Drupalcamp Chicago 12/29/2009
When You Are Engulfed in Flames
David Sedaris
Drupal 6 JavaScript and jQuery
Matt Butcher
Learning Drupal 6 Module Development
Matt Butcher
Front End Drupal: Designing, Theming, Scripting
Konstantin Käfer
Neuromancer (Sprawl Trilogy, #1)
William Gibson