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
Using environment variables for connection string to MySQL db (running in docker)? #2591
Comments
Hi @dev-samples
We will update wiki documentation, thank you for bringing this to our attention! 🦫 |
This article could be helpful for you Server configuration |
@EvgeniaBzzz first thanks for getting back so quickly! ❤️ I did take a look at: but in the sample provided in the At the bottom of that page I can the go to this link for data-sources: that describes the data-sources.json. This file I have tried to add my external MySQL connection to and it actually works when I start up a fresh container. But its the values (hostname etc.) in there that I want to set based on environments variables I can't seem to get that to work. I have:
Where I have updated .cloudbeaver.runtime.conf
to:
and then the What am I missing? |
Your config looks correct. |
Yes and when I start the app I do see the following values: /opt/cloudbeaver/workspace/.data/.cloudbeaver.runtime.conf
In:
As (expected?) I see the default values in: /opt/cloudbeaver/conf/cloudbeaver.conf
|
Hi @dev-samples What do you see when you press Test button for your connection? You will not see any changes in UI for this variable, it's expected result. But you should connect successfully if host value in docker run is valid. |
Is it possible to read e.g. hostname, user and password for a connection to e.g. and external MySQL db?
I have created this data-sources.json file
but when I pass that to my docker run command it just gets ignored:
I found some info here:
https://github.com/bobbyiliev/dbeaver/wiki/Admin-Manage-Connections#using-environment-variables
but its not really clear how to do this - e.g. if there are only a set of fields that support this?
The text was updated successfully, but these errors were encountered: