Join the MemSQL Community Today
Get expert advice, develop skills, and connect with others.



MemSQL Helios does not support this command.

Change the MemSQL root password for a MemSQL node on a host.


Change the MemSQL root password for a MemSQL node on a host (executes `GRANT...` SQL command), or correct `memsqlctl`'s record of an existing password (does not execute `GRANT...` SQL command).

  memsql-admin change-root-password [flags]

  -a, --all                  Change the MemSQL root password of all nodes in the cluster
      --fix-secure-key       Reset the secure key
  -h, --help                 Help for change-root-password
      --memsql-id MemsqlID   The MemSQL ID of the node
      --password STRING      The new MemSQL root password for the node

Global Flags:
      --backup-cache FILE_PATH              File path for the backup cache
      --cache-file FILE_PATH                File path for the Toolbox node cache
  -c, --config FILE_PATH                    Toolbox configuration file path
      --disable-spinner                     Disable the progress spinner, which some terminal sessions/environments may have issues with
  -j, --json                                Enable JSON output
      --parallelism POSITIVE_INTEGER        Maximum number of operations to run in parallel
      --runtime-dir DIRECTORY_PATH          Where to store Toolbox runtime data
      --ssh-max-sessions POSITIVE_INTEGER   Maximum number of SSH sessions to open per host, must be at least 3
      --state-file FILE_PATH                Toolbox state file path
  -v, --verbosity count                     Increase logging verbosity: valid values are 1, 2, 3. Usage -v=count or --verbosity=count
  -y, --yes                                 Enable non-interactive mode and assume the user would like to move forward with the proposed actions by default


This command is interactive unless you use either the --yes or --json flags to override interactive behavior.


The change-root-password command can only be run on nodes in a running process state.