[英]C# MYSQL - “Tunnel” past firewall
I have a C# application connecting to an external MYSQL database, all works fine but the company it is used on has MYSQL connections blocked and I cant have it allowed. 我有一个C#应用程序连接到外部MYSQL数据库,一切正常,但使用该公司的公司的MYSQL连接被阻止,我不允许它。 I am rather new to C# and MYSQL and have researched HTTP and SSH tunneling but I don't see how to implement it into a C# program.
我是C#和MYSQL的新手,并且研究过HTTP和SSH隧道,但是我看不到如何将其实现到C#程序中。
I need a way to get and send data to the MYSQL database around the firewall. 我需要一种获取和发送数据到防火墙周围的MYSQL数据库的方法。 Can someone please explain to me what my best option is and how to use it.
有人可以告诉我我最好的选择是什么以及如何使用它。
Microsoft Windows include a firewall which specifically blocks ports. Microsoft Windows包括专门阻止端口的防火墙。 If you plan on using MySQL through a network port then you should open and create an exception for this port before performing the installation.
如果计划通过网络端口使用MySQL,则应在执行安装之前打开并为此端口创建一个例外。 To check and if necessary add an exception to the firewall settings:
要检查并在必要时向防火墙设置添加例外:
First ensure that you are logged in as an Administrator or a user with Administrator privileges. 首先,请确保您以管理员或具有管理员权限的用户身份登录。
Additionally, when running the MySQL Installation Wizard on Windows 7 or newer, ensure that you are logged in as a user with administrative rights. 此外,在Windows 7或更高版本上运行MySQL安装向导时,请确保您以具有管理权限的用户身份登录。
When using Windows Vista or newer, you may want to disable User Account Control (UAC) before performing the installation. 使用Windows Vista或更高版本时,您可能需要在执行安装之前禁用用户帐户控制(UAC)。 If you do not do so, then MySQL may be identified as a security risk, which will mean that you need to enable MySQL.
如果您不这样做,则可能会将MySQL视为安全风险,这意味着您需要启用MySQL。 You can disable the security checking by following these instructions:
您可以按照以下说明禁用安全检查:
Try to Open Control Panel. 尝试打开控制面板。
You will need to restart to complete the process. 您将需要重新启动以完成该过程。 Click Restart Now to reboot the machine and apply the changes.
单击立即重新启动以重新启动计算机并应用更改。 You can then follow the instructions below for installing Windows.
然后,您可以按照以下说明安装Windows。
Connecting to MySQL Remotely from Windows with SSH 使用SSH从Windows远程连接到MySQL
This section describes how to get a secure connection to a remote MySQL server with SSH. 本节介绍如何使用SSH与远程MySQL服务器建立安全连接。 The information was provided by David Carlson .
该信息由David Carlson提供。
At this point, you should have an ODBC connection to MySQL, encrypted using SSH. 此时,您应该与MySQL建立ODBC连接,并使用SSH加密。
References: 参考文献:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.