db-command icon indicating copy to clipboard operation
db-command copied to clipboard

Introduce `wp db users`

Open tomvoss opened this issue 6 years ago • 2 comments

One of the most common tasks database administrators need to do is create user accounts for applications with full privileges to the application's database. I propose that we make that super simple in wp-cli using syntax similar to:

wp db users create --user --host --pass --privilegeduser --privilegedpass

Name of the database user to create. Hosts that are permitted to connect as . New user's password. Database user with sufficient privileges to execute the command. Privileged user's password.

This create command could be augmented by including list, delete, etc.

tomvoss avatar Apr 15 '19 22:04 tomvoss

I'm open to considering something like this, if someone would like to open a pull request for it.

danielbachhuber avatar Sep 08 '23 18:09 danielbachhuber

I am taking up this issue.

abhi3315 avatar Apr 26 '24 08:04 abhi3315