HomeMogDBMogDB StackUqbar
v2.0

Documentation:v2.0

Supported Versions:

Other Versions:

Set Database Parameters

PTK provides commands to set data parameters, and users can modify the values of the specified parameters themselves.

ptk cluster set-guc [flags]

Where Flags contains the following specific parameters:

  • -H, --host :Indicates the IP of the database server.
  • -i, --id :Indicates the ID of the database server.
  • -c, --kv :the parameters to be set, whose format should meet the form of "key (parameter name) = value (parameter value)". For example: "password_encryption_type=1".

Example of Command

Specify IP

The -H or --host parameter specifies the IP of the instance.

ptk cluster -n <CLUSTER_NAME> set-guc -H <IP> -c "key=value"

Specify ID

The -i or --id parameter specify the ID of the instance (ID can be viewed via ptk ls).

ptk cluster -n <CLUSTER_NAME> set-guc -i <ID> -c "key=value"
Copyright © 2011-2024 www.enmotech.com All rights reserved.