Can SVN replicate/copy/synchronize a database like it does code?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is not the right tool for the job. Version control systems are useful for code. You can define this as content that developers make deliberate, related, commits to in response to particular requirements (e.g. bug reports or feature requests).
Database content is different, because the application changes it directly as users interact with it.
It is appropriate to store the schema (e.g. CREATE TABLE/VIEW statements) in SVN. However, the actual database should rather be backed up (e.g. with mysqldump) and replicated (e.g. with the built-in replication) as needed.