set

This command is used to change the parameter values in the dbmind.conf configuration file. You can also manually modify the dbmind.conf configuration file. The two methods have no difference. For example, to change the value of host in the TSDB configuration item of the dbmind.conf file in the confpath directory to 127.0.0.1, run the following command:

gs_dbmind set TSDB host 127.0.0.1 -c confpath

You can choose either of the methods to modify common parameters. The DBMind configuration file does not store plaintext passwords. If a user uses a plaintext password, the DBMind displays a message and exits. Therefore, the user can change the password in either of the following ways: 1. Modify the dbmind.conf file first and run the following command to reinitialize the configuration file:

gs_dbmind service setup --initialize -c confpath
  1. Run the set subcommand to set the parameters. For example:
gs_dbmind set METADATABASE password xxxxx -c confpath

NOTE: This command is case sensitive to character strings. If you enter an incorrect character string, an error may occur during the command execution. The set subcommand involves many types of parameter values. Therefore, only the set values are preliminarily checked. You need to ensure that the entered values are correct. For example, some values must be positive integers instead of negative integers.

Command Reference

You can use the --help option to obtain the help information about this mode. For example:

gs_dbmind set --help
usage:  set [-h] -c DIRECTORY section option target

positional arguments:
  section               which section (case sensitive) to set
  option                which option to set
  target                the parameter target to set

optional arguments:
  -h, --help            show this help message and exit
  -c DIRECTORY, --conf DIRECTORY
                        set the directory of configuration files

Table 1 Parameters of the set subcommand: python dbmind/ set xxx

Parameter

Description

Value Range

-h, --help

Help information

-

-c, --conf

Configuration file directory confpath

-

section

Setting area

-

option

Configuration item

-

target

Set value

-

Feedback
编组 3备份
    openGauss 2024-05-07 00:46:52
    cancel