Versions available for this page: CUBRID 8.3.1 | CUBRID 8.4.0 |
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.
cubrid installdb options database_name
options : [{--server-name=} host] [{-F|--file-path=} database_path] [-L| --log-path=} log_path]
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