Skip to content

How does database access role binding work? #5550

Answered by r0mant
deusxanima asked this question in Q&A
Discussion options

You must be logged in to vote

@AHARIC Hey Alen, great question!

When connecting to a database using psql, mysql or other client, users still specify which database account they want to connect as or which "logical" database within the database server they want to connect to.

For example, say you've retrieved credentials for a Postgres instance that you named "example":

$ tsh db login example

The tsh db login command does update local configuration files which are database-specific. For Postgres it's the connection service file, for MySQL - option file. In there, it puts various connection parameters for the database you've logged into so CLI clients can reference them. It's somewhat similar to K8s' kubeconfig/contexts…

Replies: 2 comments

Comment options

deusxanima
Feb 11, 2021
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by klizhentas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants