How to use as an existing workspace database


#1

I want to create a new workspace that uses existing workspace and database together.
The new workspace will be the admin page in the existing workspace.
I want to know if a database created in an existing workspace can be used with a newly created workspace.
If possible, I want to know how to use it.


#2

I dont know if it’s possible, since the workspaces have only three open ports (8080, 8081, 8082)… maybe if you change the database’s port you can do it, I really dont know, never tried…


#3

You won’t be able to communicate with other workspaces on anything other than ports 8080, 8081 and 8082 as @cavallari mentions, and they only forward HTTP and WebSocket traffic.

What I would advise that you do is put all of your code in one workspace and connect to your database using localhost and whatever port you have MySQL listening on (default is 3306).


#4

If you know it’s impossible, it’s okay with it.
I have to create an admin page in a different way.
Thank you for your answer.


#5

I have tried to find a way, but I knew that even if I had a way, it would be difficult for me to do it myself.
Thank you for your answer.


#6

RE-answearing your question, with AWS Cloud9 now is possible, since any port can be open, BUT I didnt like AWS C9, I still prefer to keep on old c9.io