How to connect to cloud Mysql db from local Eclipse?

workspace
mysql

#1

Hi Team

I need someone who can show me how to connect from local, using Eclipse for database;

by default i have db name: BookStore and url: localhost:3306 port and password is “” username c9. I doesnt connect, what am i missing?


#2

Hmm, ya I don’t think this will work out. Localhost isn’t really a concept in Cloud9 but if it were then it would be a different one than what your local machine has so that wouldn’t work out.

Have a look at Multiple Ports for information about making certain things externally accessible from your workspace. I think it makes mention that you make those things available over HTTPS so allowing your database to be accessed from somewhere else probably won’t work.

I’d recommend not using Eclipse. Instead you could use Cloud9 :wink: