有没有好的通用PHP MySQL HTTP隧道?
许多 Windows MySQL 工具(例如 Navicat 或 EMS)都有这样的功能 - 您只需将 PHP 文件放在共享主机上,然后就可以通过该 php 文件公开的 Web 服务将本地运行的程序连接到 Web 上的远程 MySQL 服务器。
是否有任何好的流行免费解决方案可以使用 PHP 将完整的 MySQL 作为 Web 服务公开?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
SQLyog 的 HTTP 隧道 是一个非常不错的隧道。
SQLyog's HTTP Tunnel is a very decent one.
如果您可以通过 SSH 访问服务器,则可以在 MySQL Workbench 和 SQLyog 中使用基于 SSH 的 TCP/IP,而无需 PHP 隧道脚本。
我在共享主机上有一些客户站点,但由于服务器配置超出了我的控制范围,因此无法正常工作。我已经通过 SSH 隧道克服了这一限制,它具有加密的额外好处(显然,这只有在您可以通过 SSH 访问主机时才有效),尽管注意到,原始帖子要求使用 HTTP 隧道。
要在 SQLyog 中设置 SSH 隧道,请在连接的 MySQL 选项卡上输入 MySQL 凭据,就像通常为主机上的本地用户输入的一样(将“root”和密码替换为安全且合理的内容):
然后在 SSH 选项卡下,输入您的终端登录详细信息(用户名、密码和端口#,如果不是 22):
然后保存您的连接。
MySQL Workbench 中的过程类似,因此应该不难理解。
You can use TCP/IP over SSH from within MySQL Workbench and SQLyog without the need for PHP tunnelling script if you have SSH access to you server.
I have had customer sites on shared hosts where this doesn't work due to server configuration which is out of my control. I have overcome this restriction via SSH tunnelling which has the added benefit of being encrypted (Obviously this will only work if you have SSH access to the host however), although noted, the original post asked for a HTTP tunnel.
To setup SSH Tunnelling in SQLyog, on the MySQL tab for your connection, enter you MySQL credentials as you normally would for a local user on the host (replace 'root' and password with something secure and sensible):
And then under the SSH tab, enter your terminal login details (username, password and port# if not 22):
Then save your connection.
The process is similar in MySQL workbench so shouldn't be hard to figure it out.
尝试使用 HTTPtunnel GNU。这里的例子 使用 HTTPtunnel GNU 连接到 MySQL。
try use HTTPtunnel GNU. here example connection to MySQL using HTTPtunnel GNU.
我已经用
PHP
构建了一个MySQLTunnel
脚本,并将其放入 sourceforge 中。您可以下载并尝试。它支持:在这里你可以找到它
希望它有帮助
I have build a
MySQLTunnel
script inPHP
, and put it in sourceforge. You can download it and try. It supports:Here you can find it
Hope it helps