How to Generate a Connectstring with ndb_config
As I mentioned a few days ago, I’ve been working recently on documenting the Cluster utilities; I’m still working on ndb_config, but should get that into the Manual Real Soon Now™. In the meantime, here’s a tip I received from one of the developers. This generates a connectstring for use with data, SQL, or API nodes, using ndb_config, which you should be able to find in your mysql/bin directory:
ndb_config −−config-file=path/to/config.ini −−query=hostname,portnumber −−fields=: −−rows=, −−type=ndb_mgmd
For this to work, you need to have the Cluster management server running, with a viable config.ini at the location specified by path/to/config.ini.
Hope that someone finds this useful.



UPDATE:
ndb_configis now documented as well.