Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.4.1 | 



Adding Database Information to CM Users

Description

The cm_admin adddbinfo utility adds database information (database name, UID, broker IP, borker port) to CM users.

Syntax

cm_admin adddbinfo options cmuser-name database-name

options :

[{-u | --uid} userid]

[{-h | --host} broker-ip]

[{-p | --port} broker-port]

  • cm_admin : An integrated utility to manage CUBRID Manager
  • adddbinfo : The command used to add database information to a CM user
  • options: The -u, -h, and –p options are supported. For details, see its description and example.
  • cmuser-name : The name of a CM user
  • databse-name: The name of a database to be added
Options

Option

Description

-u
--uid

Specifies the user ID of a database (default value : dba).

-h
--host

Specifies the host of a broker used when client accesses a database (default value : localhost).

-p
--port

Specifies the port number of a broker used when client accesses a database (default value : 30000).

Adding database user ID (-u)

The following example shows how to add a database "testdb" and its user id "uid" to a CM user named "testcm".

cm_admin adddbinfo -u uid testcm testdb

Adding host IP of broker (-h)

The following example shows how to add a database "testdb" and its host IP "127.0.0.1" to a CM user named "testcm".

cm_admin adddbinfo -h 127.0.0.1 testcm testdb

Adding broker port (-u)

The following example shows how to add a database "testdb" and its broker port to "33000" to a CM user named "testcm".

cm_admin adddbinfo -p 33000 testcm testdb

Creating a default database

The following example shows how to add a default database "testdb" to a CM user named "testcm".

cm_admin adddbinfo testcm testdb