question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specifiying username: inconsistency with mycli

See original GitHub issue

Description

pgcli takes -U as the option flag to specify the user; mycli uses -u. This is confusing (I had to check before writing this issue, to make sure I got them right).

Could those two be unified?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
amjithcommented, Aug 7, 2017

I think it’s important to make our clients behave similarly to the official clients, because people would want to use them as drop-in replacements.

This was the original reason. My goal was to make pgcli or mycli so compelling and fully-featured that people will never have to use the official clients. It will grow to a point where they will alias psql and mysql to pgcli and mycli in their bashrc files.

Having said that I don’t see why we can’t support both -u and -U for both clients. I don’t see a conflict in pgcli if we use the lowercase -u and no conflict in mycli if we use -U for user. So I don’t mind supporting both uppercase and lowercase -u for user option.

0reactions
amjithcommented, Aug 31, 2017

Let’s stay out of using -U in mycli then. I think that’s a useful feature that we may implement in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Connect to database - mycli
Please note the hostname is part of the credentials for MySQL! The following default values are used to connect: user - your current...
Read more >
dbcli/mycli - Gitter
Essentially, you just need to run: mysql_config_editor set --login-path=test --host=localhost --user=localuser --password and then you'd be prompted for your ...
Read more >
Read more options from my.cnf · Issue #281 · dbcli/mycli
Just a list of options I'm currently using and that would be nice to have automatcially in mycli [mysql] pager = mypager ...
Read more >
SweetOps #variant for April, 2020
SweetOps Slack archive of #variant for April, 2020.
Read more >
Install mycli on Linux | Snap Store - Snapcraft
Get the latest version of mycli for Linux - mycli is a command line interface ... TEXT Read MySQL config groups with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found