[英]What is the best method of manipulate a MySQL database from a desktop application?
I'm developing an application that depends on sending and receiving data from a MySQL database. 我正在开发一个依赖于从MySQL数据库发送和接收数据的应用程序。 This is a .NET application written in C#.
这是用C#编写的.NET应用程序。 I already know that I could use ADO.NET to access the database directly, but I'm using a shared server so direct access to the database remotely is not allowed and a dedicated server account is just to expensive at this point in development.
我已经知道我可以使用ADO.NET直接访问数据库,但是我使用的是共享服务器,因此不允许远程直接访问数据库,并且专用服务器帐户在开发的这一点上代价很高。 I was thinking about using the application to send a encrypted SQL request using php and then the server will return a encrypted XML file containing the data that was requested, but I don't know maybe that would be too slow, any suggestions?
我当时正在考虑使用该应用程序通过php发送加密的SQL请求,然后服务器将返回一个包含请求数据的加密XML文件,但我不知道那可能会太慢,有什么建议吗?
Have you thought about SSH tunneling your requests / responses? 您是否考虑过SSH隧道传输您的请求/响应? There are SSH libraries to enable this, then use ADO.NET through the SSH tunnel?
有SSH库可以启用此功能,然后通过SSH隧道使用ADO.NET吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.