Start a Database

This article explains how to start a database.

Starting a database starts the main cluster and all worker clusters. You can also specify to start the nodes if they are offline.

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. You can also access ConfD through XML-RPC in your own Python programs. 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'