title: Restore state of a mysql database after tests
body: <p>I'm working on a website that has a lot of unit tests, each needing the database to be in some 'default' state. Right know I'm destroying the database with each test and loading the default state using an SQL script. And it's very slow. So I thought that it would be useful if I could save that default state and restore the database to it at the beginning of each test. 
  Is this possible ? If not, why could I do to accelerate the process ? Right know I drop the entire database and re-create it. If I dropped only the rows wouldn't that improve the performance ?</p>