Set the license of a node on the local machine.


  memsqlctl set-license [flags]

  -h, --help               help for set-license
      --license LICENSE    the license to be applied
      --memsql-id string   the MemSQL 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
  -j, --json                                 Print output in JSON format
      --node-metadata-file FILE_PATH         Path to the node metadata file
      --parallelism int                      Maximum amount of operations to be run in parallel
      --ssl-ca FILE_PATH                     Path to the CA certificate file in PEM format to authenticate the MemSQL server certificate
      --timeout duration                     Maximum time for operation to complete (e.g., 30s, 10m, 1.5h)
  -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 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.

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.


$ 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
Was this article useful?