Documentation Home
MySQL Cluster API Developer Guide
Download this Manual
PDF (US Ltr) - 5.3Mb
PDF (A4) - 5.3Mb
EPUB - 2.3Mb
HTML Download (TGZ) - 2.2Mb
HTML Download (Zip) - 2.3Mb

MySQL Cluster API Developer Guide  /  The NDB API  /  NDB API Examples

2.4 NDB API Examples

This section provides code examples illustrating how to accomplish some basic tasks using the NDB API.

All of these examples can be compiled and run as provided, and produce sample output to demonstrate their effects.


For an NDB API program to connect to the cluster, the cluster configuration file must have at least one [api] section that is not assigned to an SQL node and that can be accessed from the host where the NDB API application runs. You can also use an unassigned [mysqld] section for this purpose, although we recommend that you use [mysqld] sections for SQL nodes and [api] sections for NDB client programs. See MySQL Cluster Configuration Files, and especially Defining SQL and Other API Nodes in a MySQL Cluster, for more information.

User Comments
Sign Up Login You must be logged in to post a comment.