XiaoMi / soar

SQL Optimizer And Rewriter
Apache License 2.0
8.67k stars 1.32k forks source link

support dsn with ssh tunnel ? #231

Closed somnus-L closed 4 years ago

somnus-L commented 5 years ago

Issues on GitHub are intended to be related to bugs or feature requests, so we recommend using our other community resources instead of asking here.

martianzhang commented 4 years ago

SOAR now use go-sql-driver/mysql DSN format.

https://github.com/go-sql-driver/mysql#dsn-data-source-name

What you mean about the ssh tunnel supported? @somnus-L

somnus-L commented 4 years ago

I mean when connecting to the database, sometimes in addition to the standard DSN, you also need ssh proxy, how to add ssh proxy in soar config.yaml

martianzhang commented 4 years ago

There many ways to create ssh tunnel for proxy. Google may help you, SOAR will not do this thing.

https://www.linode.com/docs/databases/mysql/create-an-ssh-tunnel-for-mysql-remote-access/