简体   繁体   English

允许远程MySQL连接

[英]Allowing Remote MySQL connections

I'm building an Excel app using VSTO / VB.NET and make several connections to a bunch of databases/tables in MySQL which is hosted on a BlueHost account. 我正在使用VSTO / VB.NET构建一个Excel应用程序,并与托管在BlueHost帐户上的MySQL中的一堆数据库/表建立了多个连接。

Now, they require for the IP address of the inquiring computer to be registered as a 'host', which sounds great for security but given the app will be distributed to a theoretically unlimited number of people on an unlimited number of computers - it's very impractical for me to individually allow each client IP address in my BlueHost account. 现在,他们要求将查询计算机的IP地址注册为“主机”,这听起来非常安全,但是鉴于该应用程序将在理论上不限数量的计算机上分发给不限数量的用户-这是非常不切实际的让我分别在我的BlueHost帐户中允许每个客户端IP地址。 What's the best way to allow access, on the fly? 快速允许访问的最佳方法是什么?

The database user/password will already have the correct permissions to the relevant databases etc. It's just a matter of allowing them access to a remote MYSQL connection to start off with. 数据库用户/密码已经具有对相关数据库等的正确权限。只需要允许他们访问远程MYSQL连接即可。

I've read around SO to use the 'GRANT ALL' SQL Command but I'm not sure exactly when and where to use this. 我已经读过SO以便使用“ GRANT ALL” SQL命令,但是我不确定何时何地使用它。 How would you run a SQL command before making a connection to the database; 与数据库建立连接之前如何运行SQL命令; because it is at this point that the connection throws an error.. 因为正是在这一点上连接引发错误。

看看它,它也具有与远程服务器连接的所有信息, 在这里

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

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