开发者

Is there any good universal PHP MySQL HTTP tunnel? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. 开发者_StackOverflow社区 Closed 9 years ago.

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?


SQLyog's HTTP Tunnel is a very decent one.

Is there any good universal PHP MySQL HTTP tunnel? [closed]


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

Is there any good universal PHP MySQL HTTP tunnel? [closed]

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

Is there any good universal PHP MySQL HTTP tunnel? [closed]

Then save your connection.

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


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜