![]() |
MySQL database connection with help of SSH tunneling
Hello All,
I would like to connect MySQL database from PHP, with help of SSH tunneling. I suppose/want to use "ssh2_connect" and "ssh2_..." sets of commands. Queries are that can I use these sets of command for this purpose, and if yes how can I do that. Thanks in advance. Regards, |
Well, to login to your mysql demon from ssh cli you use the following command:
> mysql -u username -p > password And you are now able to use the mysqld from ssh. You use "quit" to stop using the server. But may I ask why you want to do it over ssh? As for the ssh2_* functions, never used them so I can't help you with that :) |
Quote:
|
Well if you can connect to ssh you should be able to use mysql. But it would be pretty difficult to use compared with the normal mysql functions.
|
this may be of some use: http://chxo.com/be2/20040511_5667.html
|
| All times are GMT. The time now is 06:39 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0