mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-19 07:01:32 +00:00
Update cheatsheets
This commit is contained in:
@@ -10,28 +10,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run a `doctl databases user` command with an access token:
|
||||
|
||||
`doctl databases user {{command}} {{[-t|--access-token]}} {{access_token}}`
|
||||
`doctl {{[d|databases]}} {{[u|user]}} {{command}} {{[-t|--access-token]}} {{access_token}}`
|
||||
|
||||
- Retrieve details about a database user:
|
||||
|
||||
`doctl databases user get {{database_id}} {{user_name}}`
|
||||
`doctl {{[d|databases]}} {{[u|user]}} {{[g|get]}} {{database_id}} {{user_name}}`
|
||||
|
||||
- Retrieve a list of database users for a given database:
|
||||
|
||||
`doctl databases user list {{database_id}}`
|
||||
`doctl {{[d|databases]}} {{[u|user]}} {{[ls|list]}} {{database_id}}`
|
||||
|
||||
- Reset the auth password for a given user:
|
||||
|
||||
`doctl databases user reset {{database id}} {{user_name}}`
|
||||
`doctl {{[d|databases]}} {{[u|user]}} {{[rs|reset]}} {{database id}} {{user_name}}`
|
||||
|
||||
- Reset the MySQL auth plugn for a given user:
|
||||
|
||||
`doctl databases user reset {{database_id}} {{user_name}} {{caching_sha2_password|mysql_native_password}}`
|
||||
`doctl {{[d|databases]}} {{[u|user]}} {{[rs|reset]}} {{database_id}} {{user_name}} {{caching_sha2_password|mysql_native_password}}`
|
||||
|
||||
- Create a user in the given database with a given username:
|
||||
|
||||
`doctl databases user create {{database_id}} {{user_name}}`
|
||||
`doctl {{[d|databases]}} {{[u|user]}} {{[c|create]}} {{database_id}} {{user_name}}`
|
||||
|
||||
- Delete a user from the given database with the given username:
|
||||
|
||||
`doctl databases user delete {{database_id}} {{user_name}}`
|
||||
`doctl {{[d|databases]}} {{[u|user]}} {{[rm|delete]}} {{database_id}} {{user_name}}`
|
||||
|
||||
Reference in New Issue
Block a user