Posterous

various ramblings

-- justin kelly

  • Blog
  • Home
  • Contact me
« Back to posts
  • Viewed
    times

Filed under

  • bash
  • linux
  • mysql
December 29, 2011

Simple MySQL db refresh script

  • Edit
  • Delete
  • Tags
  • Autopost
If you need to drop the contents of a MySQL database and reimport base data alot (such as a webapp demo or development site) below is a very simple script to make your life easier

Just edit the configs, create the import.sql add it to your cron jobsĀ