@@ -337,7 +337,8 @@ typedef enum mysqlx_sort_direction_enum
337
337
typedef enum mysqlx_opt_type_enum
338
338
{
339
339
MYSQLX_OPT_HOST = 1 , /**< host name or IP address */
340
- MYSQLX_OPT_PORT = 2 , /**< X Plugin port to connect to */
340
+ /** DNS name of the host, IPv4 address or IPv6 address */
341
+ MYSQLX_OPT_PORT = 2 ,
341
342
MYSQLX_OPT_USER = 3 , /**< user name */
342
343
MYSQLX_OPT_PWD = 4 , /**< password */
343
344
MYSQLX_OPT_DB = 5 , /**< default database */
@@ -397,7 +398,7 @@ typedef enum mysqlx_view_check_option_enum
397
398
/**
398
399
Create a new session.
399
400
400
- @param host server host address
401
+ @param host server host DNS name, IPv4 address or IPv6 address
401
402
@param port port number
402
403
@param user user name
403
404
@param password password
@@ -429,8 +430,11 @@ mysqlx_get_session(const char *host, int port, const char *user,
429
430
Create a session using connection string or URL.
430
431
431
432
Connection sting has the form `"user:pass\@host:port/?option&option"`,
432
- valid URL is like a connection string with a `mysqlx://` prefix. Possible
433
- connection options are:
433
+ valid URL is like a connection string with a `mysqlx://` prefix. Host is
434
+ specified as either DNS name, IPv4 address of the form "nn.nn.nn.nn" or
435
+ IPv6 address of the form "[nn:nn:nn:...]".
436
+
437
+ Possible connection options are:
434
438
435
439
- `ssl-enable` : use TLS connection
436
440
- `ssl-ca=`<path> : path to a PEM file specifying trusted root certificates
@@ -489,7 +493,7 @@ mysqlx_get_session_from_options(mysqlx_session_options_t *opt,
489
493
490
494
A node session connects only to one mysqld node at a time.
491
495
492
- @param host server host address
496
+ @param host server host DNS name, IPv4 address or IPv6 address
493
497
@param port port number
494
498
@param user user name
495
499
@param password password
@@ -520,8 +524,8 @@ mysqlx_get_node_session(const char *host, int port, const char *user,
520
524
/**
521
525
Create a node session using connection string or URL.
522
526
523
- Connection sting has the form `"user:pass\@host:port"`, valid URL
524
- is like a connection string with `mysqlx://` prefix .
527
+ See `mysqlx_get_session_from_url()` for information on connection string
528
+ format .
525
529
526
530
A node session connects only to one mysqld node at a time.
527
531
@@ -540,6 +544,8 @@ mysqlx_get_node_session(const char *host, int port, const char *user,
540
544
541
545
@note This type of session supports executing plain SQL queries
542
546
547
+ @see `mysqlx_get_session_from_url()`
548
+
543
549
@ingroup xapi_sess
544
550
*/
545
551
0 commit comments