views:

44

answers:

1

Hi guys!

Does anybody know how to do smart database update in realtime.

E.g. I have a site with a great database. Suddenly I've made some code changes and database structure and data changes. Is there any standard plan to do it with deploy script or any deploy soft? In realtime without stopping the site?

E.g. switch between two clone databases or smth like that. How do experienced people do that?

Site is written in php, database is MySql.

Thanx!

+1  A: 

Have you looked at DBdeploy? There's a good article here on managing database deployments using Phing and DBdeploy

seengee
What he said. We've used DBDeploy before in both .NET and Java. Works like a charm.
Lunivore
Yes, this is good tool and article. And it suit to my task. But what if we have to do big batch update and need to save site working? # <exec # command="${progs.mysql} -h${db.host} -u${db.user} -p${db.pass} ${db.name} < ${build.dbdeploy.deployfile}" # dir="${build.dir}" # checkreturn="true" /> do sql query, but this query with drop tables or updates can make the database server response slowly or make some tables unavailable.
soulfly