Here is a quick way to compile a simple MGM API application. The example will get the state of all nodes in MySQL Cluster (http://www.mysql.com/products/database/cluster/) and print whether they are connected or not.
All this without a Makefile, we just want to have some simple example on Linux to see how it works. It's basic, maybe, but sometimes useful to just have a peek.
Requirements! We assume that:
The code, save it in a file called mgmapi_test.cc (from the[Read more...]