Oracle provides precompiled MySQL Cluster binaries for Windows which should be adequate for most users. However, if you wish, it is also possible to compile MySQL 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:
To build MySQL Cluster, you must use the MySQL Cluster sources, which you can obtain from http://dev.mysql.com/downloads/cluster/.
Attempting to build MySQL Cluster from the source code for the standard MySQL Server is likely not to be successful, and is not supported by Oracle.
You must configure the build using the
WITH_NDBCLUSTERoption in addition to any other build options you wish to use with CMake. (
WITH_NDBCLUSTERis supported as an alias for
WITH_NDBCLUSTER_STORAGE_ENGINE, and works in exactly the same way.)
WITH_NDB_JAVA option is
enabled by default. This means that, by default, if
CMake 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
-DWITH_NDB_JAVA=OFF. (Bug #12379735) Use
WITH_CLASSPATH to provide the
Java classpath if needed.
For more information about CMake options specific to building MySQL Cluster, see Options for Compiling MySQL Cluster.
Once the build process is complete, you can create a Zip archive
containing the compiled binaries;
Section 2.9.2, “Installing MySQL Using a Standard Source Distribution” provides the
commands needed to perform this task on Windows systems. The
MySQL Cluster binaries can be found in the
bin directory of the resulting archive,
which is equivalent to the
archive, and which can be installed and configured in the same
manner. For more information, see
Section 188.8.131.52, “Installing MySQL Cluster on Windows from a Binary Release”.