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 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.