简体   繁体   English

部署时同步数据库的最佳实践

[英]Best practice for syncing databases on deploy

In our projects we have three different instances of our typo3 websites (development, test, productive). 在我们的项目中,我们有三个不同的typo3网站实例(开发,测试,高效)。 We are using MySQL as Database. 我们正在使用MySQL作为数据库。

The development instance is on a different machine then test and productive. 开发实例位于另一台机器上,然后进行测试并具有生产效率。

If there are changes in the database we have to apply them by hand in all three instances. 如果数据库中有更改,我们必须在所有三个实例中手动应用它们。 this is not a very safe approach and i wanted to ask you if you can give me an advice on how to sync those databases (or specific tables of it). 这不是一个非常安全的方法,我想问一下您是否可以给我一些有关如何同步这些数据库(或其特定表)的建议。 The synchronisation has to be one way. 同步必须是一种方式。 So only from development to test, and from test to productive. 因此,只有从开发到测试,从测试到生产。

currenty we are deploying using an rsync script. 当前,我们正在使用rsync脚本进行部署。

I found some solutions to sync the databases like mysql replication but i dont know if thats the best approach for my situation. 我找到了一些解决方案来同步数据库,例如mysql复制,但我不知道这是否是适合我的情况的最佳方法。 I want that the database sync starts automatically after the filesync finished. 我希望文件同步完成后数据库同步自动开始。

I would be happy if someone could give me an adive on how to solve this problem the best way. 如果有人能给我一个最好的解决方法的建议,我会很高兴。

I'm a newbie with typo3 CMS and I need to deploy from DEV to PROD the changes made on the backend. 我是typo3 CMS的新手,我需要从DEV部署到PROD后端进行的更改。 So I think we have the same problem of sync between TYPO3 database. 所以我认为我们在TYPO3数据库之间存在同步问题。

Available solutions: - Use external Typoscript files to avoid storing it in database and updating PROD with svn update - Modify by hand the others parts 可用的解决方案:-使用外部Typoscript文件来避免将其存储在数据库中,并使用svn update更新PROD-手动修改其他部分

OR 要么

  • Using phpmyadmin new feature to synchronize databases 使用phpmyadmin新功能同步数据库

It's just theoritical solutions. 这只是理论上的解决方案。 At the moment, I can't test them. 目前,我无法对其进行测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SQL数据库中数据修订控制的最佳实践 - Best practice for revision control of data in SQL databases mysql 关系数据库同步到弹性搜索的最佳实践 - Best practice for mysql relational database syncing to elastic search Dropbox同步数据库损坏 - Dropbox Syncing Databases Corruptly 关系数据库:当前数据与历史数据,最佳实践 - Relational Databases: Current Data vs. Historical Data, best Practice 在不同的mysql / mariadb数据库上共享数据的最佳实践 - Best practice for sharing data over differenet mysql/mariadb databases Need Insight-同步将在实时站点上使用的生产数据库的最佳实践是什么? CakePHP,Mysql - Need Insight - What is the best practice for syncing up a production database that will be used on a live site? CakePHP, Mysql Laravel5.3连接和同步多个数据库 - Laravel5.3 connecting and syncing multiple databases 有一个拥有来自其他3个数据库的信息的大型数据库的最佳实践是什么? - What is the best practice to have one large database with fed information from other 3 databases? 分布式数据库的最佳设计 - Best design for distributed databases 直接同步来自不同供应商的两个数据库? (Oracle和MySQL) - Syncing two databases from different vendors directly? (Oracle & MySQL)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM