Want more features on Pastebin? Sign Up, it's FREE!

shell script to truncate all MySql tables

By: a guest on Feb 26th, 2012  |  syntax: None  |  size: 0.07 KB  |  views: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. mysqldump  --no-data mydb | mysql mydb
  3. mk-find -exec "truncate %s"
clone this paste RAW Paste Data