<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h3 class="title">
      <a name="mysql-cluster-install-first-start">
      </a>
      25.3.4 Initial Startup of NDB Cluster
     </h3>
    </div>
   </div>
  </div>
  <a class="indexterm" name="idm46045122217312">
  </a>
  <p>
   Starting the cluster is not very difficult after it has been
      configured. Each cluster node process must be started separately,
      and on the host where it resides. The management node should be
      started first, followed by the data nodes, and then finally by any
      SQL nodes:
  </p>
  <div class="orderedlist">
   <ol class="orderedlist" type="1">
    <li class="listitem">
     <p>
      On the management host, issue the following command from the
          system shell to start the management node process:
     </p>
     <div class="copytoclipboard-wrapper">
      <pre class="programlisting one-line language-terminal"><div class="docs-select-all right" id="sa82515273"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-terminal"><span class="token prompt">$&gt; </span><span class="token command">ndb_mgmd</span> <span class="token property">--initial</span> <span class="token property">-f</span> /var/lib/mysql-cluster/config<span class="token punctuation">.</span>ini</code></pre>
     </div>
     <p>
      The first time that it is started,
      <a class="link" href="mysql-cluster-programs-ndb-mgmd.html" title="25.5.4 ndb_mgmd — The NDB Cluster Management Server Daemon">
       <span class="command">
        <strong>
         ndb_mgmd
        </strong>
       </span>
      </a>
      must be told where to find its configuration file, using the
      <code class="option">
       -f
      </code>
      or
      <a class="link" href="mysql-cluster-programs-ndb-mgmd.html#option_ndb_mgmd_config-file">
       <code class="option">
        --config-file
       </code>
      </a>
      option. This
          option requires that
      <a class="link" href="mysql-cluster-programs-ndb-mgmd.html#option_ndb_mgmd_initial">
       <code class="option">
        --initial
       </code>
      </a>
      or
      <a class="link" href="mysql-cluster-programs-ndb-mgmd.html#option_ndb_mgmd_reload">
       <code class="option">
        --reload
       </code>
      </a>
      also be specified;
          see
      <a class="xref" href="mysql-cluster-programs-ndb-mgmd.html" title="25.5.4 ndb_mgmd — The NDB Cluster Management Server Daemon">
       Section 25.5.4, “ndb_mgmd — The NDB Cluster Management Server Daemon”
      </a>
      , for
          details.
     </p>
    </li>
    <li class="listitem">
     <p>
      On each of the data node hosts, run this command to start the
      <a class="link" href="mysql-cluster-programs-ndbd.html" title="25.5.1 ndbd — The NDB Cluster Data Node Daemon">
       <span class="command">
        <strong>
         ndbd
        </strong>
       </span>
      </a>
      process:
     </p>
     <div class="copytoclipboard-wrapper">
      <pre class="programlisting one-line language-terminal"><div class="docs-select-all right" id="sa62921103"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-terminal"><span class="token prompt">$&gt; </span><span class="token command">ndbd</span></code></pre>
     </div>
    </li>
    <li class="listitem">
     <p>
      If you used RPM files to install MySQL on the cluster host
          where the SQL node is to reside, you can (and should) use the
          supplied startup script to start the MySQL server process on
          the SQL node.
     </p>
    </li>
   </ol>
  </div>
  <a class="indexterm" name="idm46045122200864">
  </a>
  <a class="indexterm" name="idm46045122199376">
  </a>
  <p>
   If all has gone well, and the cluster has been set up correctly,
      the cluster should now be operational. You can test this by
      invoking the
   <a class="link" href="mysql-cluster-programs-ndb-mgm.html" title="25.5.5 ndb_mgm — The NDB Cluster Management Client">
    <span class="command">
     <strong>
      ndb_mgm
     </strong>
    </span>
   </a>
   management node client.
      The output should look like that shown here, although you might
      see some slight differences in the output depending upon the exact
      version of MySQL that you are using:
  </p>
  <div class="copytoclipboard-wrapper">
   <pre class="programlisting language-ndbmgm"><div class="docs-select-all right" id="sa94324881"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-ndbmgm">$<span class="token operator">&gt;</span> ndb_mgm
<span class="token operator">--</span> NDB Cluster <span class="token operator">--</span> Management Client <span class="token operator">--</span>
<span class="token prompt">ndb_mgm&gt;</span> <span class="token keyword">SHOW</span>
Connected to Management Server at<span class="token operator">:</span> localhost<span class="token operator">:</span>1186 <span class="token punctuation">(</span>using cleartext<span class="token punctuation">)</span>
Cluster Configuration
<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span>
<span class="token selector">[ndbd(NDB)]</span>     2 node<span class="token punctuation">(</span>s<span class="token punctuation">)</span>
id<span class="token operator">=</span>2    @198<span class="token punctuation">.</span>51<span class="token punctuation">.</span>100<span class="token punctuation">.</span>30  <span class="token punctuation">(</span>Version<span class="token operator">:</span> 8<span class="token punctuation">.</span>4<span class="token punctuation">.</span>0<span class="token operator">-</span>ndb<span class="token operator">-</span>8<span class="token punctuation">.</span>4<span class="token punctuation">.</span>0<span class="token punctuation">,</span> Nodegroup<span class="token operator">:</span> 0<span class="token punctuation">,</span> <span class="token operator">*</span><span class="token punctuation">)</span>
id<span class="token operator">=</span>3    @198<span class="token punctuation">.</span>51<span class="token punctuation">.</span>100<span class="token punctuation">.</span>40  <span class="token punctuation">(</span>Version<span class="token operator">:</span> 8<span class="token punctuation">.</span>4<span class="token punctuation">.</span>0<span class="token operator">-</span>ndb<span class="token operator">-</span>8<span class="token punctuation">.</span>4<span class="token punctuation">.</span>0<span class="token punctuation">,</span> Nodegroup<span class="token operator">:</span> 0<span class="token punctuation">)</span>

<span class="token selector">[ndb_mgmd(MGM)]</span> 1 node<span class="token punctuation">(</span>s<span class="token punctuation">)</span>
id<span class="token operator">=</span>1    @198<span class="token punctuation">.</span>51<span class="token punctuation">.</span>100<span class="token punctuation">.</span>10  <span class="token punctuation">(</span>Version<span class="token operator">:</span> 8<span class="token punctuation">.</span>4<span class="token punctuation">.</span>0<span class="token operator">-</span>ndb<span class="token operator">-</span>8<span class="token punctuation">.</span>4<span class="token punctuation">.</span>0<span class="token punctuation">)</span>

<span class="token selector">[mysqld(API)]</span>   1 node<span class="token punctuation">(</span>s<span class="token punctuation">)</span>
id<span class="token operator">=</span>4    @198<span class="token punctuation">.</span>51<span class="token punctuation">.</span>100<span class="token punctuation">.</span>20  <span class="token punctuation">(</span>Version<span class="token operator">:</span> 8<span class="token punctuation">.</span>4<span class="token punctuation">.</span>0<span class="token operator">-</span>ndb<span class="token operator">-</span>8<span class="token punctuation">.</span>4<span class="token punctuation">.</span>0<span class="token punctuation">)</span></code></pre>
  </div>
  <p>
   The SQL node is referenced here as
   <code class="literal">
    [mysqld(API)]
   </code>
   , which reflects the fact that the
   <a class="link" href="mysqld.html" title="6.3.1 mysqld — The MySQL Server">
    <span class="command">
     <strong>
      mysqld
     </strong>
    </span>
   </a>
   process is acting as an NDB Cluster API
      node.
  </p>
  <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
   <div class="admon-title">
    Note
   </div>
   <p>
    The IP address shown for a given NDB Cluster SQL or other API
        node in the output of
    <a class="link" href="mysql-cluster-mgm-client-commands.html#ndbclient-show">
     <code class="literal">
      SHOW
     </code>
    </a>
    is the address used by the SQL or API node to connect to the
        cluster data nodes, and not to any management node.
   </p>
  </div>
  <p>
   You should now be ready to work with databases, tables, and data
      in NDB Cluster. See
   <a class="xref" href="mysql-cluster-install-example-data.html" title="25.3.5 NDB Cluster Example with Tables and Data">
    Section 25.3.5, “NDB Cluster Example with Tables and Data”
   </a>
   , for a brief
      discussion.
  </p>
 </div>
 <br/>
</div>
