Mysql – Put MySQL database under version control

databaseMySQLversion control

I'm currently using SVN for my PHP projects. I was thinking I should get my database under version control too, but what's the best way to do that? Do I just make a db-folder in my project in SVN, paste SQL changes into a file called from_1.0_to_2.0.sql and commit?

Best Answer

Note that recently (December 2012), you have another option: DBV (DataBase Version)

It is based on this Github project, and is a database version control web application featuring schema management, revision scripts, and more.

database schema