<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h4 class="title">
      <a name="mysql-cluster-install-windows-source">
      </a>
      25.3.2.2 Compiling and Installing NDB Cluster from Source on Windows
     </h4>
    </div>
   </div>
  </div>
  <a class="indexterm" name="idm46045122446544">
  </a>
  <a class="indexterm" name="idm46045122445056">
  </a>
  <p>
   Oracle provides precompiled NDB Cluster binaries for Windows
        which should be adequate for most users. However, if you wish,
        it is also possible to compile NDB Cluster for Windows from
        source code. The procedure for doing this is almost identical to
        the procedure used to compile the standard MySQL Server binaries
        for Windows, and uses the same tools. However, there are two
        major differences:
  </p>
  <div class="itemizedlist">
   <ul class="itemizedlist" style="list-style-type: disc; ">
    <li class="listitem">
     <p>
      MySQL NDB Cluster 8.4 is built from the MySQL
            Server 8.4 sources, available from the MySQL
            downloads page at
      <a class="ulink" href="https://dev.mysql.com/downloads/" target="_top">
       https://dev.mysql.com/downloads/
      </a>
      . The
            archived source file should have a name similar to
      <code class="filename">
       mysql-8.4.0.tar.gz
      </code>
      .
            You can also obtain the sources from GitHub at
      <a class="ulink" href="https://github.com/mysql/mysql-server" target="_blank">
       https://github.com/mysql/mysql-server
      </a>
      .
     </p>
    </li>
    <li class="listitem">
     <p>
      You must configure the build using the
      <a class="link" href="source-configuration-options.html#option_cmake_with_ndb">
       <code class="option">
        WITH_NDB
       </code>
      </a>
      option in addition to
            any other build options you wish to use with
      <span class="command">
       <strong>
        CMake
       </strong>
      </span>
      .
      <a class="link" href="source-configuration-options.html#option_cmake_with_ndbcluster">
       <code class="option">
        WITH_NDBCLUSTER
       </code>
      </a>
      is also
            supported for backwards compatibility, but is deprecated and
            subject to future removal.
     </p>
    </li>
   </ul>
  </div>
  <div class="important" style="margin-left: 0.5in; margin-right: 0.5in;">
   <div class="admon-title">
    Important
   </div>
   <p>
    The
    <a class="link" href="source-configuration-options.html#option_cmake_with_ndb_java">
     <code class="option">
      WITH_NDB_JAVA
     </code>
    </a>
    option is
          enabled by default. This means that, by default, if
    <span class="command">
     <strong>
      CMake
     </strong>
    </span>
    cannot find the location of Java on
          your system, the configuration process fails; if you do not
          wish to enable Java and ClusterJ support, you must indicate
          this explicitly by configuring the build using
    <code class="option">
     -DWITH_NDB_JAVA=OFF
    </code>
    . (Bug #12379735) Use
    <a class="link" href="source-configuration-options.html#option_cmake_with_classpath">
     <code class="option">
      WITH_CLASSPATH
     </code>
    </a>
    to provide the
          Java classpath if needed.
   </p>
  </div>
  <p>
   For more information about
   <span class="command">
    <strong>
     CMake
    </strong>
   </span>
   options
        specific to building NDB Cluster, see
   <a class="xref" href="source-configuration-options.html#cmake-mysql-cluster-options" title="CMake Options for Compiling NDB Cluster">
    CMake Options for Compiling NDB Cluster
   </a>
   .
  </p>
  <p>
   Once the build process is complete, you can create a Zip archive
        containing the compiled binaries;
   <a class="xref" href="installing-source-distribution.html" title="2.8.4 Installing MySQL Using a Standard Source Distribution">
    Section 2.8.4, “Installing MySQL Using a Standard Source Distribution”
   </a>
   provides the
        commands needed to perform this task on Windows systems. The NDB
        Cluster binaries can be found in the
   <code class="filename">
    bin
   </code>
   directory of the resulting archive, which is equivalent to the
   <code class="literal">
    no-install
   </code>
   archive, and which can be
        installed and configured in the same manner. For more
        information, see
   <a class="xref" href="mysql-cluster-install-windows-binary.html" title="25.3.2.1 Installing NDB Cluster on Windows from a Binary Release">
    Section 25.3.2.1, “Installing NDB Cluster on Windows from a Binary Release”
   </a>
   .
  </p>
 </div>
 <br/>
</div>
