Dealing with Problems Compiling MySQL Enable binary logging by default in the  mysqld  built using this option. ON by default. Enable building the debug versions of the NDB Cluster binaries. OFF by default. Enable building NDB Cluster with Java support, including  ClusterJ . This option is ON by default. If you do not wish to compile NDB Cluster with Java support, you must disable it explicitly by specifying  -DWITH_NDB_JAVA=OFF  when running  CMake . Otherwise, if Java cannot be found, configuration of the build fails. Causes the NDB Cluster management server ( ndb_mgmd ) that is built to use this  port  by default. If this option is unset, the resulting management server tries to use port 1186 by default. If enabled, include a set of NDB API test programs. The default is OFF. Alias for  WITH_NDBCLUSTER . The solution to many problems involves reconfiguring. If you do reconfigure, take note of the following: To prevent old object files or configuration information from being used, run the following commands before re-running  CMake : If you build outside of the source tree, remove and recreate your build directory before re-running  CMake . For instructions on building outside of the source tree, see How to Build MySQL Server with CMake. On some systems, warnings may occur due to differences in system include files. The following list describes other problems that have been found to occur most often when compiling MySQL: 245 • -DWITH_NDB_BINLOG={ON|OFF} • -DWITH_NDB_DEBUG={ON|OFF} • -DWITH_NDB_JAVA={ON|OFF} • -DWITH_NDB_PORT= port • -DWITH_NDB_TEST={ON|OFF} • -DWITH_PLUGIN_NDBCLUSTER={ON|OFF} •If  CMake  is run after it has previously been run, it may use information that was gathered during its previous invocation. This information is stored in  CMakeCache.txt . When  CMake  starts, it looks for that file and reads its contents if it exists, on the assumption that the information is still correct. That assumption is invalid when you reconfigure. •Each time you run  CMake , you must run  make  again to recompile. However, you may want to remove old object files from previous builds first because they were compiled using different configuration options. shell>  make clean shell>  rm CMakeCache.txt shell>  devenv MySQL.sln /clean shell>  del CMakeCache.txt On Unix: On Windows: 2.9.8 Dealing with Problems Compiling MySQL