有没有好的通用PHP MySQL HTTP隧道?

发布于 2024-09-02 08:53:47 字数 185 浏览 4 评论 0 原文

许多 Windows MySQL 工具(例如 Navicat 或 EMS)都有这样的功能 - 您只需将 PHP 文件放在共享主机上,然后就可以通过该 php 文件公开的 Web 服务将本地运行的程序连接到 Web 上的远程 MySQL 服务器。

是否有任何好的流行免费解决方案可以使用 PHP 将完整的 MySQL 作为 Web 服务公开?

Many Windows MySQL tools like Navicat or EMS have this thing - You just put a PHP file on a shared hosting and can connect local running program to the remote MySQL server on the Web via the web service exposed by that php file.

Are there any good popular free solutions to expose full MySQL as a web service using PHP?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

草莓味的萝莉 2024-09-09 08:53:47

SQLyog 的 HTTP 隧道 是一个非常不错的隧道。

在此处输入图像描述

SQLyog's HTTP Tunnel is a very decent one.

enter image description here

情痴 2024-09-09 08:53:47

如果您可以通过 SSH 访问服务器,则可以在 MySQL Workbench 和 SQLyog 中使用基于 SSH 的 TCP/IP,而无需 PHP 隧道脚本。

我在共享主机上有一些客户站点,但由于服务器配置超出了我的控制范围,因此无法正常工作。我已经通过 SSH 隧道克服了这一限制,它具有加密的额外好处(显然,这只有在您可以通过 SSH 访问主机时才有效),尽管注意到,原始帖子要求使用 HTTP 隧道。

要在 SQLyog 中设置 SSH 隧道,请在连接的 MySQL 选项卡上输入 MySQL 凭据,就像通常为主机上的本地用户输入的一样(将“root”和密码替换为安全且合理的内容):

MySQL Configuration

然后在 SSH 选项卡下,输入您的终端登录详细信息(用户名、密码和端口#,如果不是 22):

SSH 配置

然后保存您的连接。

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):

MySQL Configuration

And then under the SSH tab, enter your terminal login details (username, password and port# if not 22):

SSH Configuration

Then save your connection.

The process is similar in MySQL workbench so shouldn't be hard to figure it out.

无尽的现实 2024-09-09 08:53:47

尝试使用 HTTPtunnel GNU。这里的例子 使用 HTTPtunnel GNU 连接到 MySQL。

try use HTTPtunnel GNU. here example connection to MySQL using HTTPtunnel GNU.

笑脸一如从前 2024-09-09 08:53:47

我已经用 PHP 构建了一个 MySQLTunnel 脚本,并将其放入 sourceforge 中。您可以下载并尝试。它支持:

  • 到 MySQL 的 HTTP 隧道
  • JSON 结果集
  • 按需压缩以节省带宽
  • 使用 AES-128 或 AES-256 进行按需加密以保护安全数据
    和密码
  • 支持 http:// 和 https://
  • 用 PHP 编写,可以安装在任何 LAMP 或 WAMP 堆栈上
  • 快速、安全的通信

在这里你可以找到它

希望它有帮助

I have build a MySQLTunnel script in PHP, and put it in sourceforge. You can download it and try. It supports:

  • HTTP Tunneling to MySQL
  • JSON Resultset
  • On-demand compression to preserve bandwidth
  • On-demand encryption using AES-128 or AES-256 to preserve secure data
    and password
  • Supports both http:// and https://
  • Written in PHP can be installed on any LAMP or WAMP stack
  • Fast and secure communication

Here you can find it

Hope it helps

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文