doctl databases user reset

Go to Navigation

Usage

doctl databases user reset <database-id> <user-name> <new-auth-mode> [flags]

Aliases

rs

Description

This command resets the auth password or the MySQL auth plugin for a given user. It will return the new user credentials. When resetting MySQL auth, valid values for <new-auth-mode> are caching_sha2_password and mysql_native_password.

Flags

OptionDescription
--help, -hHelp for this command
CommandDescription
doctl databases userDisplay commands for managing database users

Global Flags

OptionDescription
--access-token, -tAPI V2 access token
--api-url, -uOverride default API endpoint
--config, -cSpecify a custom config file
Default:
  • macOS: ${HOME}/Library/Application Support/doctl/config.yaml
  • Linux: ${XDG_CONFIG_HOME}/doctl/config.yaml
  • Windows: %APPDATA%\doctl\config.yaml
--contextSpecify a custom authentication context name
--output, -oDesired output format [text|json]
Default: text
--traceShow a log of network activity while performing a command
Default: false
--verbose, -vEnable verbose output
Default: false