I have a virtual machine with Ubuntu on my Bluemix account. I have install on it mysql service and I'd like to connect to mysql service from an other server. I'm able to connet it using port 3306 using a tunnel over ssh because it doesnt't work to connect it directly using only the port 3306. I notice that my virtual machine has a NAT IP behind the Public IP so that i can't connect it directly. Is there a solution to connect to mysql directly?
Dario
Answer by takehiko.amano (4219) | Jun 18, 2015 at 04:00 AM
Hi, this is just an idea, not an answer. It may work with TCP tunnel service like "chisel".
https://github.com/jpillora/chisel
This allows to connect to backend database. I have used this to connect MySQL services on Bluemix. MySQL services also behind local networks, so it can not be accessed from outside of Bluemix. Chisel allowed me to connect those resources.
So I suspect that TCP tunnel should work for this kind of connectivity problem.
Another solution (similar to chisel) is to use Secure Gateway service on Bluemix. You need Docker engine on your Bluemix VM image. But with secure gateway services, you can connect to your MySQL service from remote network. Refer this article for this alternative solution.
https://developer.ibm.com/bluemix/2015/04/01/reaching-enterprise-backend-bluemix-secure-gateway/
Largest VM for Bluemix VMs? 1 Answer
VM unable to access (ping or ssh) 3 Answers
Bluemix Containers and Virtual Machines pricing? 3 Answers
How to reset bluemix virtual machine login password? 0 Answers