Versions available for this page: CUBRID 8.4.0 |
The cm_admin changedbinfo utility is used to change database information of the specified CM user.
cm_admin changedbinfo options cmuser-name database-name
options :
[{-u | --uid} userid]
[{-h | --host} brokert-ip]
[{-p | --port} broker-port]
|
Option |
Description |
|---|---|
|
-u |
Specifies the user id of the database. |
|
-h |
Specifies the host of the broker, with which client can access the database. |
|
--port |
Specifies the port number of the broker, with which the client can access the database. |
Database user id (-u)
The following example shows updating the database info of database “testdb”of a CM user named “testcm” with user id “uid”.
cm_admin changedbinfo -u uid testcm testdb
Host IP of broker (-h)
The following example shows updating database info of database “testdb” of a CM user named “testcm” with host ip “10.34.63.132”.
cm_admin changedbinfo -h 10.34.63.132 testcm testdb
Port of the broker (-u)
The following example shows updating database info of database “testdb” of a CM user named “testcm” with broker port “33000”.
cm_admin changedbinfo -p 33000 testcm testdb