To use the NDB API with MySQL, you must have the
libndbclient
client library and its
associated header files installed alongside the regular MySQL
client libraries and headers under
.
These are automatically installed when you build MySQL using
install_dir
/lib-DWITH_NDBCLUSTER=ON
or use a
MySQL binary package that supports the NDB
storage engine.
This Guide is targeted for use with MySQL NDB Cluster 7.5 and later.
C and C++ language support.
The following table provides information about minimum C and
C++ language requirements for compiling MGM API applications,
NDB API applications, and the libndbclient
library against supported versions of NDB Cluster.
Table 2.1 Language support requirements
NDB Cluster Version | MGM API | NDB API | header files | libndbclient |
---|---|---|---|---|
7.5, 7.6 | C99 (GCC 4.5; Clang—any version) | C++98 (GCC 4.8.1; Clang 3.3) | C99 or C++98 | C++03 (GCC 4.3; Clang—any version) |
8.0, 8.1, 8.2 (NDB 8.1 and 8.2 are Innovation releases which are no longer available) | C++11 (GCC 4.8.1; Clang 3.3) | C++11 | C++11 | C++03 (In these versions, this is the same as the level of C++ language support required to compile the MySQL server.) |
8.3 and later | C99 | C++11 | C99 or C++11 | C++17 (GCC 8; Clang 5) |
For information about building MySQL and NDB Cluster from source, see Installing MySQL from Source. For information about building MySQL applications against the MySQL C API, see Building C API Client Programs.