-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Remote connection to MySQL from my local computer #736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @sebastianpd1, thanks for your interesting question! This use case would also be useful for our dedicated I have no experience with SequelPro or MySQL Workbench, but I'd say that you have two options:
echo "mysql://root@$(gp url 3306 | sed 's_https://__')/example" I haven't tested this yet. Please let me know if you're able to get it to work, or if you'd like further help. 🙂 Good luck! |
Hi, I have tried generating the connection string via the method above, and it doesn't seem to work. Here's my sample connection string: mysql://remote@3306-b56c270d-9f91-4154-a6ac-df568bdee40c.ws-us02.gitpod.io:3306/test I keep getting a timed out error, using DBeaver. I have make sure to create the remote user and the test database. The port 3306 is also public. |
The problem here is that Gitpod supports only HTTP traffic into workspaces atm. There might still be a way (by proxying mysql/socket over HTTP) but that's a tad more work I guess. |
Note: I know that this doesn't really address the issue here, but if you need a graphical MySQL Client, there are several MySQL extensions available in Gitpod (to install them, simply find the Extensions panel in the IDE's left vertical menu, and search for "mysql"). I've never tried to use them, but I know we install the "VSCode Database" extension in some of our repos. |
Here are two ways of achieving what you want. Use
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We just announced preview version of Gitpod local companion which allows to tunnel any tcp port: https://www.gitpod.io/blog/local-app particularly it allows you access everything on localhost on proper port, similarly how you will do it in the local env, please try and give us feedback 🙏🏻 |
Hello, I'm using a gitpod container to run a database, is it possible to connect using something like SequelPro or MySQL workbench??
This is my connection string inside gitpod:
The text was updated successfully, but these errors were encountered: