Registering 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 ]

Options

Registering a host name (--server-name)

The following example shows how to register 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 how to register the directory path of a database volume to databases.txt by using the -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 how to register the directory path of a database log volume to databases.txt by using the -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