johnny
johnny

Reputation: 19735

Can SVN synchronize MySQL databases?

Can SVN replicate/copy/synchronize a database like it does code?

Upvotes: 3

Views: 734

Answers (3)

Matthew Flaschen
Matthew Flaschen

Reputation: 284836

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.

Upvotes: 4

Sergey Eremin
Sergey Eremin

Reputation: 11080

no, it cant, unless you are speaking about dumps/backups...

Upvotes: 0

Frank
Frank

Reputation: 2648

No.

What it can do is manage create SQL scripts or ER models which are based on files.

Upvotes: 0

Related Questions