[MDEV-13551] I'd like to tell `mysql` to always prompt for a password Created: 2017-08-16  Updated: 2017-09-14  Resolved: 2017-09-14

Status: Closed
Project: MariaDB Server
Component/s: Scripts & Clients
Affects Version/s: 10.1.22
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Sven Herzberg Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: need_feedback
Environment:

Debian GNU/Linux Jessie w/Backports



 Description   

The command line tool mysql currently has three modes of operation WRT to handling the -p command line argument:

1. No -p provided at all.
2. Plain -p provided.
3. -p provided with password.

Unfortunately, only the first and second mode of operation can be automated using $HOME/.my.cnf.

I'd like to propose a new option for .my.cnf, called password-prompt, so I can specify that I always want to be asked for my password.



 Comments   
Comment by Sergei Golubchik [ 2017-08-16 ]

What problem are you trying to solve?

Comment by Elena Stepanova [ 2017-09-14 ]

If you just want to be always asked for password, you can put password without an argument into the client section of the cnf file. If you are trying to solve some other problem, please clarify as requested above.

Generated at Thu Feb 08 08:06:28 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.