Oracle 5.0 Reference Manual page 2191

Table of Contents

Advertisement

Use named pipes to connect to a MySQL server on Windows, if the server permits named-pipe
connections.
MYSQL_OPT_PROTOCOL
Type of protocol to use. Specify one of the enum values of
mysql.h.
MYSQL_OPT_READ_TIMEOUT
The timeout in seconds for attempts to read from the server. Each attempt uses this timeout value
and there are retries if necessary, so the total effective timeout value is three times the option
value. You can set the value so that a lost connection can be detected earlier than the TCP/IP
Close_Wait_Timeout
prior to MySQL 5.0.25, only for Windows.
MYSQL_OPT_RECONNECT
Enable or disable automatic reconnection to the server if the connection is found to have been lost.
Reconnect has been off by default since MySQL 5.0.3; this option is new in 5.0.13 and provides a
way to set reconnection behavior explicitly.
Note:
mysql_real_connect()
value before MySQL 5.0.19. Therefore, prior to that version, if you want reconnect to be enabled for
each connection, you must call
each call to mysql_real_connect(). This is not necessary as of 5.0.19: Call
only before
mysql_real_connect()
MYSQL_OPT_SSL_VERIFY_SERVER_CERT
Enable or disable verification of the server's Common Name value in its certificate against the host
name used when connecting to the server. The connection is rejected if there is a mismatch. This
feature can be used to prevent man-in-the-middle attacks. Verification is disabled by default. Added
in MySQL 5.0.23.
MYSQL_OPT_USE_EMBEDDED_CONNECTION
For an application linked against the
the embedded server for the connection. This option is ignored for applications linked against the
client library.
libmysqlclient
MYSQL_OPT_USE_REMOTE_CONNECTION
For an application linked against the
of a remote server for the connection. This option is ignored for applications linked against the
client library.
libmysqlclient
MYSQL_OPT_USE_RESULT
This option is unused.
MYSQL_OPT_WRITE_TIMEOUT
The timeout in seconds for attempts to write to the server. Each attempt uses this timeout value
and there are
net_retry_count
net_retry_count
and, prior to MySQL 5.0.25, only for Windows.
MYSQL_READ_DEFAULT_FILE
Read options from the named option file instead of from my.cnf.
C API Function Descriptions
(argument type:
unsigned int
(argument type:
value of 10 minutes. This option works only for TCP/IP connections and,
(argument type:
my_bool
incorrectly reset the
mysql_options()
as usual.
libmysqld
(argument: not used)
libmysqld
(argument: not used)
(argument type:
[478]
retries if necessary, so the total effective timeout value is
[478]
times the option value. This option works only for TCP/IP connections
(argument type:
2171
*)
mysql_protocol_type
unsigned int
*)
*)
MYSQL_OPT_RECONNECT
with the
MYSQL_OPT_RECONNECT
(argument type:
my_bool
(argument: not used)
embedded server library, this forces the use of
embedded server library, this forces the use
unsigned int
*)
char
*)
defined in
option to its default
option after
mysql_options()
*)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents