Connect to your database through ssh

If you have a local database client you can connect to your database without having to use a public IP on the database node.

First follow the instructions on how to connect to the platform using ssh and find the nodeid of the database you need to connect to.
http://docs.jelastic.com/ssh-access

In this example you we connect to a mySQL database that is listening on port 3306.

ssh {nodeid}-{uid}@gate.jelastic.elastx.net -p 3022 -L 2000:localhost:3306 -N

ssh 12345-12@gate.jelastic.elastx.net -p 3022 -L 2000:localhost:3306 -N

 Then you can connect with your favorite database client on localhost:2000.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.