Giter Site home page Giter Site logo

支持SSH隧道 about mysql-schema-sync HOT 5 CLOSED

hidu avatar hidu commented on July 19, 2024
支持SSH隧道

from mysql-schema-sync.

Comments (5)

hidu avatar hidu commented on July 19, 2024

具体场景是怎样的?先ssh 登陆,然后才能连接mysql?

from mysql-schema-sync.

iineva avatar iineva commented on July 19, 2024

实际生产环境中,数据库网络一般不会暴露在公网中。
ssh可以做端口映射,可以通过公网的ssh端口连接,把后端服务器的某个ip上的端口映射到本地,这样通过访问本地端口就能访问到服务器后端的数据库了。
很多数据库工具都提供了这个功能,数据库GUI工具Navicat就提供了这个功能。
开源的工具有medis,做的是redis的GUI工具,也提供了一样的功能,可以参考其实现。

from mysql-schema-sync.

mercykevin avatar mercykevin commented on July 19, 2024

那直接用ssh把数据库的端口映射到本地不就行了吗

from mysql-schema-sync.

iineva avatar iineva commented on July 19, 2024

那直接用ssh把数据库的端口映射到本地不就行了吗

这样做当然可以,但是我提出这个issues是为了让这个工具更好用

from mysql-schema-sync.

hidu avatar hidu commented on July 19, 2024

 不属于这个工具考虑的

from mysql-schema-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.