如何将MySQL从本地服务器发送到在线实时服务器
我已经在WAMP中使用PHP和一个MySQL数据库创建了一个Web应用程序。我将在Linode服务器上启动在线演示。
我的问题是,一旦我将其直播在Linode上,我想在Wamp上本地添加一个新的MySQL表,如何将MySQL更改为在线实时版本。我不确定这是什么叫做以及如何做。如果有人可以分享很棒的想法/视频
I have created a web app locally in WAMP with PHP and a MySQL database. I am about to launch a demo online on a Linode server.
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. I am not sure what this is called and how to do it. if anyone can share ideas/videos that would be awesome
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议使用MySQL副本,其中仅从中读取复制的数据库。
您也可以创建某种类型的CI/CD管道,该管道将在本地与遥控器上运行相同的查询,但这要复杂一些。
I would suggest using a MySQL Replica, in which the replicated database will only be read from.
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.