-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
tsh db connect <rds-primary-endpoint>
throws matches multiple databases
error
#31286
Comments
@smallinsky technically, this is by design. |
As for the line wrapping... that's terminal emulator specific I think - what do you guys think about making it print just the ambiguous names, without all the extra info? |
Why we can't just check if a provided database name has exact match with with one of the shortened database "original name" ? For backward compatibility perspective the
In this case a user can just type a |
👍, when exactly one of the databases has the exact short/original name.
I think that works. Or use |
suppose you have databases:
And then
We have two options for how to handle this scenario:
I think we should go with option 2 here - actual db name exact match > db discovered name label exact match. |
This is tough. I personally prefer option 2, especially for scripting purposes. However, one problem with option 2 is the average user is not educated on using the full name to connect the "discovered" |
I think that option 2 is more UX friendly. Also can we detect in
We can also consider always printing |
Alternatively, since there is a breaking change log on this already, maybe |
I like the idea to make The |
Expected behavior:
tsh db connect <rds-primary-endpoint>
should connect to dbCurrent behavior:
Bug details:
"server_version": "14.0.0-alpha.2",
Workaround:
tsh db connect --db-user alice --db-name test steve-mysql-rds-aurora-ca-central-1-123123123123
Feels like a regression but it could also be "as designed" from the renaming feature.
Besides
tsh db connect
throws an error, the table dumped from the error is not very readable when there are lots of tags and the row running over to next line.Test Plan: #31122
The text was updated successfully, but these errors were encountered: