[英]How to update mysql database changes on database server automatically?
Client want that database structure update should be automatic and error free.客户希望数据库结构更新应该是自动且无错误的。
For Example:例如:
SQL query 1
to central place. SQL query 1
。SQL query 2
to central place. SQL query 2
。SQL query 1
and SQL query 2
is updated on database server. SQL query 1
和SQL query 2
在数据库服务器上更新。SQL query 3
to central place.SQL query 3
。SQL query 3
is updated on database server. SQL query 3
在数据库服务器上更新。 Is it possible or at what level we can automate this update process?是否有可能或在什么级别上我们可以自动化此更新过程?
What is the best standard uproach to update database changes daily when there are many developers working on a project and adding SQL scripts to database?当有许多开发人员从事一个项目并将 SQL 脚本添加到数据库时,每天更新数据库更改的最佳标准方法是什么?
We are using:我们正在使用:
Linux dedicated server.
Crontab
PHP
MySQL
SVN
Shell Scripting
I would set up three directories;我会设置三个目录;
New scripts are dropped into "pending".新脚本被放入“待定”中。 A process runs from cron and picks these up, and tries to process them.
一个进程从 cron 运行并拾取这些,并尝试处理它们。 Successfully processed files are moved to "success", otherwise they are moved to "failure".
处理成功的文件移至“成功”,否则移至“失败”。
A log file records all activity by the scheduled process, and emails or alerts are generated upon failure.日志文件记录计划进程的所有活动,并在失败时生成电子邮件或警报。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.