Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual ndb_mgm_connect()

Description.  This function establishes a connection to a management server specified by the connection string set by Section, “ndb_mgm_set_connectstring()”.


int ndb_mgm_connect
      NdbMgmHandle handle,
      int          retries,
      int          delay,
      int          verbose

Parameters.  This function takes 4 arguments:

  • A management server handle.

  • The number of retries to make when attempting to connect. 0 for this value means that one connection attempt is made.

  • The number of seconds to delay between connection attempts.

  • If verbose is 1, then a message is printed for each connection attempt.

Return value.  This function returns -1 in the event of failure.

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