Start a Database

This article explains how to start a database.

Prerequisites

The database must be stopped. For more information, see Stop a Database.

Procedure - ConfD

The following examples use ConfD through the command-line tool confd_client, which is available on all database nodes. For more information, see ConfD.

  1. Connect to the cluster operating system (COS) using c4 connect -i PLAY_ID -s cos. For example:

    Copy
    ./c4 connect -i c3275f84 -s cos

    For more information about how to use c4 connect, see How to use c4.

  2. To find the name of the database, use the ConfD job db_list. For example:

    Copy
    confd_client db_list
    - MY_DATABASE
  3. To start the database, use the ConfD job db_start. For example:

    Copy
    confd_client db_start db_name: MY_DATABASE
  4. To verify that the database is running, use the ConfD job db_state. For example:

    Copy
    confd_client db_state db_name: MY_DATABASE
    ...
    Result:
    'running'