ssh隧道 mysql,如何通过SSH隧道连接MySQL

Hello Guys,

I''m trying to have an desktop app that will connect my website MySQL database. I have done some research, and I have found the use of SSH.

My problem is I don''t know how to integrate it to my desktop app.

Please help.

Thanks in advance...

解决方案If you have a mysql database on a server somewhere all you need to do is get the MySql.Data.dll and MySql.Web.dll and place them in your bin directory, add a reference to them, add the Import statements at the top, and get the connection string for the database. If it is a client side app you can create a app.config file and store your connections in it and use ConfigurationManager to get the connection you need when creating a new connection.

If this doesn''t answer your question please let me know. Also, this is based on the assumption that you have a mysql database running on a server somewhere. If I''m mistaken or have misinterpreted your question please let me know.

Why you are going to connect your mysql database using SSH, where the database resides,

no need to connect using SSH to your mysql(either it is on LINUX,Windows). you can connect with

mysql odbc connecter.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值