简体   繁体   English

如何从本地服务器发送 Mysql 更改到在线实时服务器

[英]How to send Mysql changes from local server to online live server

I have created a web app locally in WAMP with PHP and a MySQL database.我在 WAMP 中本地创建了一个 web 应用程序,其中包含 PHP 和一个 MySQL 数据库。 I am about to launch a demo online on a Linode server.我即将在 Linode 服务器上在线启动演示。

My question is once I have got it live on LINODE and I want to add a new Mysql table locally on WAMP how do i push the MYSQL changes to the live version online.我的问题是,一旦我在 LINODE 上发布了它并且我想在 WAMP 上本地添加一个新的 Mysql 表,我如何将 MYSQL 更改推送到在线实时版本。 I am not sure what this is called and how to do it.我不确定这叫什么以及如何做。 if anyone can share ideas/videos that would be awesome如果有人可以分享很棒的想法/视频

I would suggest using a MySQL Replica, in which the replicated database will only be read from.我建议使用 MySQL 副本,其中复制的数据库只会被读取。

That or you can create some type of CI/CD pipeline which will run the same queries on your local as the remote, but that's a bit more complex.那或者你可以创建某种类型的 CI/CD 管道,它将在你的本地运行与远程相同的查询,但这有点复杂。

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

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