Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There is a SVN repository. When the trunk/ in the repository updates, our scripts automatically update our testing server. When branches/stable/ updates, our scripts automatically update our main Web server.

There is also two MySQL databases: for the main server and for the testing server.

I'd like to also manage the SQL database structure with SVN. Note that I'd like to manage only structure not the data in the database.

Is it possible to extract and manage with SVN only the structure of the MySQL database not its data?

share|improve this question

Dump your database structure with

mysqldump --no-data schema_name > schema_name.sql

and commit that file to your SVN repository

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.