简体   繁体   English

如何将多个分支与mysql服务器连接

[英]How to connect multiple branches with mysql server

I'm working in a freelance project where the client wants to install an instance of the system in all three of his branches, its developed using c#. 我在一个自由项目中工作,客户希望在其所有三个分支中安装系统实例,该实例是使用c#开发的。 any ideas on how should i connect those branches is highly appreciated. 我应该如何连接这些分支机构的任何想法都受到高度赞赏。

Use Centralized MySql Server 使用集中式MySql服务器

  1. Host your Mysql server Somewhere (AWS,Azure,Or any other providers) 在某个地方托管您的Mysql服务器(AWS,Azure或任何其他提供程序)
  2. Allow remote connection to mysql. 允许远程连接到mysql。 Refer 参考
  3. Configure Your Winform application to Connect to that server 配置Winform应用程序以连接到该服务器

Note:- When hosting Mysql on server make sure your server has static IP. 注意:-在服务器上托管Mysql时,请确保您的服务器具有静态IP。 or you have to change the IP in you application every time your server gets new IP. 否则您必须在服务器每次获得新IP时更改应用程序中的IP。

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

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