简体   繁体   English

如何手动同步两个mysql以共享主机

[英]How to Sync two mysql manually for shared hosting

I have two database for my website one is online(Godaddy Shared Hosting) and one is offline(Xampp), I want to sync both database manually. 我的网站有两个数据库,一个数据库在线(Godaddy共享主机),另一个数据库离线(Xampp),我想手动同步两个数据库。

Because there is limited access of internet in the office so our data entry team put data on offline database,I want that data to sync everyday in evening after there shift to online godaddy database. 由于办公室中互联网的访问受到限制,因此我们的数据输入团队将数据存储在脱机数据库中,我希望该数据每天晚上在转移到在线Godaddy数据库后进行同步。 what should be the easiest possible way of doing this, also noted that there are extra data generated everyday in online database by public. 这样做应该是最简单的方法,还应指出,公众每天都会在在线数据库中生成额外的数据。

PS: I am using Cakephp 2.4 PS:我正在使用Cakephp 2.4

Just use classic file based replication with row based format. 只需使用基于经典文件的复制和基于行的格式即可。 Make offline database as read-only to avoid any unauthorized writes. 将脱机数据库设为只读,以避免任何未经授权的写入。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM