Skip to content

Conversation

@laudares
Copy link

The MySQL root password is no longer available as an environment variable inside the container. I provide a two-step approach that consists in grabbing the password from the secrets file first and storing it in a local env; maybe we want to provide a more detailed explanation instead.

The MySQL root password is no longer available as an environment variable inside the container. I provide a two-step approach that consists in grabbing the password from the secrets file first and storing it in a local env; maybe we want to provide a more detailed explanation instead.
@fiowro
Copy link
Contributor

fiowro commented Mar 27, 2025

Our official method of getting root password is little bit different, it doesn't involve other programs like awk. It is described in connect.md and looks as follows:

kubectl get secret <secret-name> -n <namespace> --template='{{"{{"}}.data.root | base64decode{{"}}"}}{{"{{"}}"\n"{{"}}"}}'

Also, I'd recommend leaving this command untouched (involving environment variable to pass the password may be rather common, but definitely not required). Instead, I propose adding a note on how to acquire root password with our official way of doing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants