Description. This function is used to set the connectstring for a management server connection to a node.
Signature.
int ndb_mgm_set_connectstring
(
NdbMgmHandle handle,
const char* connectstring
)
Parameters.
ndb_mgm_set_connectstring() takes two
parameters:
A management server handle.
A connectstring whose
format is shown here:
connectstring:= [nodeid-specification,]host-specification[,host-specification]
(It is possible to establish connections with multiple management servers using a single connectstring.)
nodeid-specification:= nodeid=idhost-specification:=host[:port]
id,
port, and
host are defined as
follows:
id: An integer
greater than 0 identifying a
node in config.ini.
port: An integer
referring to a standard Unix port.
host: A string
containing a valid network host address.
Section 3.2.4.1, “ndb_mgm_get_connectstring()” also uses
this format for connectstrings.
Return value.
This function returns -1 in the event of
failure.
