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.

ssh隧道 mysql,如何通过SSH隧道连接MySQL相关推荐

  1. wdcp mysql密码_WDCP提示无法连接mysql及创建站点提示mysql密码不正确

    一.wdcp系统访问提示无法连接mysql 1.可能是mysql服务没启动,首先ssh登陆服务器,然后执行service mysqld restart重启mysql再访问试下,如果无法启动,先用df  ...

  2. mysql跳过安全_Navicat连接MySQL数据库

    前言: 在使用Gin架构搭建博客的时候,需要设计数据库,以及连接数据库.命令端口操控效率实在是太低且不好管理,这个时候使用Navicat就能轻松高效的使用数据库了. 步骤: 下载安装Navicat,M ...

  3. qt5.8连接mysql代码_qt5.8如何连接mysql

    qt5.8连接mysql的方法:首先编译生成mysql的驱动:然后下载"libmysql.dll"库,并将其放在Qt的bin文件夹下:最后创建连接代码文件进行测试即可. 推荐:&l ...

  4. 在linux中连接mysql数据库服务器_Linux下连接Mysql服务器的方式

    一:mysql连接简介 1.linux下mysql的连接方式有三种: 本地mysql命令连接 客户端命令连接 脚本语言封装方法连接 2.linux下mysql的连接方法有两种: TCP/IP协议连接 ...

  5. mysql 遗失对主机的连接,MySQL远程连接丢失问题解决方法(Lost connection to MySQL server)...

    MySQL远程连接丢失问题解决方法(Lost connection to MySQL server) 最近服务器很不稳定,于是重装了mysql 和php 服务,但是接着却遇到了很头疼的麻烦. 远程连接 ...

  6. java连接MySQL几种方法_Java连接MySQL数据库三种方法

    好久没有更新博客了!今天利用周目时学习了一下数据库mysql.介绍一下数据库的三种连接方式! 开发工具:Myeclipse MySQL5.6 MySQL连接驱动:mysql-connector-jav ...

  7. MYSQL闪退及DBeaver连接MYSQL出现拒绝连接的解决方法

    问题描述: MYSQL闪退: DBeaver连接MYSQL失败 可能原因是MYSQL服务没有启动  解决方案: 1.使用管理者模式打开CMD 2.进入MYSQL安装目录下的bin目录,并执行mysql ...

  8. asp连接mysql odbc,在ASP中连接MySQL数据库的方法,最好的通过ODBC方法

    折腾了一阵,总算把ASP和MySQL连接完成了,有感,特写此文与大家一同分享. 查了很多资料,ASP和MySQL连接目前有两种办法:一个是使用组件,比较有名是MySQLX,可惜要99美元.二就是使用M ...

  9. php 查看mysql连接数据库_php基础之连接mysql数据库和查询数据

    php基础之连接mysql数据库和查询数据 文章主要介绍了php连接mysql数据库和查询数据的方法和示例,需要的朋友可以参考下,就跟随百分网小编一起去了解下吧,想了解更多相关信息请持续关注我们应届毕 ...

  10. mysql出现1499错误_连接MySQL时出现1449与1045异常解决办法

    连接MySQL时出现1449与1045异常解决办法 mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解 ...

最新文章

  1. SAP后台作业记录操作
  2. 【研发管理】中国企业 VS 世界优秀企业在产品研发上差距(下)
  3. json-c库使用总结
  4. 【开源项目】C++BASE64图像编解码算法
  5. android歌词效果,自定义View:Android歌词控件
  6. NFS网络文件系统服务配置、验证及错误解决
  7. IE浏览器不能上网的处理办法
  8. linux里强制覆盖,Linux cp命令无法强制覆盖
  9. 004-集成maven和Spring boot的profile功能打包
  10. 硬盘分区整数计算方法
  11. 2022年学习数据科学的18个网站
  12. tekton pipelineresource资源
  13. 三步破解IntelliJ IDEA2017
  14. 12.Linux 网络配置
  15. appinventor拓展开发
  16. 【数据结构与算法】动态规划-leetcode.1884 鸡蛋掉落两枚鸡蛋
  17. Android 魅族 线性马达 mEngine 震动适配
  18. 视频教程-OpenGLES萌谷手册(iOS2018版)-其他
  19. 【从零开始学习计算机网络——计算机网络传输技术】
  20. 钕铁硼磁铁(NdFeB MAGNET)生产工艺流程

热门文章

  1. mysql 导入dmp_mysql导入导出sql文件
  2. oracle外表日期,三步教会你掌握oracle外表(external table)
  3. bat随机打开目录下的一个音乐文件_Tomcat bin目录详解
  4. java 创建数组工具类_用Java创建数组工具类ArrayTool
  5. mysql5.7 innodb myisam 区别_InnoDB与MyISAM的区别(高性能MySQL笔记)
  6. pycharm 激活方法分享(有效期至2099)
  7. PHP 中 call_user_func 的使用
  8. Android 开发笔记___Activity的生命周期
  9. Tomcat主页404错误
  10. BZOJ4448:[SCO2015]情报传递