Skip to main content



Set the license of a node on the local host.

This command requires you to pass in a license file to --license.

Verify the target node is running. The set-license command cannot be run on a stopped node.


  memsqlctl set-license [flags]

  -h, --help               Help for set-license
      --license LICENSE    The license to be applied
      --memsql-id string   The node ID of the node

Global Flags:
  -c, --config FILE_PATH                     Path to the memsqctl config file
      --default-install-dir DIRECTORY_PATH   Path to the default install directory
      --insecure-ssl                         Fall back to insecure SSL connections to local SingleStoreDB nodes if memsqlctl is unable to otherwise establish a connection (ADVANCED)
  -j, --json                                 Print output in JSON format
      --node-metadata-file FILE_PATH         Path to the node metadata file
      --parallelism POSITIVE_INTEGER         Maximum amount of operations to be run in parallel
      --ssl-ca FILE_PATH                     The path to the CA certificate file (in PEM format) to authenticate the database certificate
      --timeout duration                     Maximum time for operation to complete (e.g., 30s, 10m, 1.5h)
      --verbose-json                         Print output in JSON format, include some warnings and user messages
  -v, --verbosity count                      Increase logging verbosity
  -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 enable non-interactive mode through the flag --yes.

    In addition, if you have more than one node running on a host, you must also set --memsql-id for non-interactive mode.

  • The memsqlctl set-license command is equivalent to the sdb-admin set-license command.


sudo memsqlctl set-license --license <base64-encoded license>
memsqlctl will perform the following actions on the local node on port 3306:
  · Run `SET LICENSE = '<base64-encoded license>'`

Would you like to continue? [y/N]: y
✓ Set license on node with MemSQL ID 179062CAEEBCBDA755B75297BF6D9B2AE4C98FB7