MySQL 路由器 8.4  /  ...  /  mysqlrouter_passwd — 命令行选项

4.3.2.3 mysqlrouter_passwd — 命令行选项

mysqlrouter_passwd实用程序是一个命令行应用程序,用于管理 passwd 文件中的帐户。有关使用示例,请参阅第 6.1 节“简单 MySQL 路由器 REST API 指南”

使用信息

Usage
  bin/mysqlrouter_passwd [opts] <cmd> <filename> [<username>]
  bin/mysqlrouter_passwd --help
  bin/mysqlrouter_passwd --version

Commands

  delete
      Delete username (if it exists) from <filename>.
  list
      list one or all accounts of <filename>.
  set
      add or overwrite account of <username> in <filename>.
  verify
      verify if password matches <username>'s credentials in <filename>.

Options

  -?, --help
      Display this help and exit.
  --kdf <name>
      Key Derivation Function for 'set'. One of pbkdf2-sha256, pbkdf2-sha512,
      sha256-crypt, sha512-crypt. default: sha256-crypt
  -V, --version
      Display version information and exit.
  --work-factor <num>
      Work-factor hint for KDF if account is updated.