Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.3.1 |  CUBRID 8.4.0 | 

Installing Database

Description

The cubrid installdb utility is used to register the information of a newly installed database to databases.txt, which stores database location information. The execution of this utility does not affect the operation of the database to be registered.

Syntax

cubrid installdb options database_name

options : [{--server-name=} host] [{-F|--file-path=} database_path] [-L| --log-path=} log_path]

  • cubrid : An integrated utility for the CUBRID service and database management.
  • installdb : A command that registers the information of a moved or copied database to databases.txt.
  • options : --server-name, -F, -L options are available. For more information on each option, see the option description and example. If no option is used with a command, the command must be executed in the directory where the corresponding database exists.
  • database_name : The name of database to be registered to databases.txt.
Option

Registering the host name (--server-name)

The following example shows registering the server host information of a database to databases.txt with a specific host name. If this option is not specified, the current host information is registered.

cubrid installdb --server-name=cub_server1 testdb

Registering the directory path of a database volume (-F or ?file-path)

The following example shows registering the directory path of a database volume to databases.txt with an -F option. If this option is not specified, the path of a current directory is registered as default.

cubrid installdb ?F /home/cubrid/CUBRID/databases/testdb testdb

Registering the directory path of a database log volume (-L or ?log-path)

The following example shows registering the directory path of a database log volume to databases.txt with an -L option. If this option is not specified, the directory path of a volume is registered.

cubrid installdb ?L /home/cubrid/CUBRID/databases/logs/testdb testdb