MySQL Forums
Forum List  »  Connector/C++

Re: SQL via ssh
Posted by: Luis Silva
Date: September 09, 2021 06:02AM

Hi!

To achieve that, you have first to create a tunnel using SSH, fowarding the mysql server port.

There is no way to do that only using the connector.

Using SSH (if ssh to the server running mysql:

ssh -L 3306:localhost:3306 username@my_mysql_server_machine

Then, on connector, just connect to localhost (or the server you run ssh on).

Options: ReplyQuote


Subject
Views
Written By
Posted
361
August 30, 2021 04:40PM
Re: SQL via ssh
193
September 09, 2021 06:02AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.