Subscribe to RSS Subscribe to Comments

My So-Called Blog

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.

Comments

  1. jon
    October 3rd, 2006 | 21:11

    UPDATE: ndb_config is now documented as well.

Leave a reply

MySQL 5.0.45-communityPHP 5.2.3