Oracle 5.0 Reference Manual page 2193

Table of Contents

Advertisement

Option
local-infile[={0|1}]
max_allowed_packet=bytes
multi-queries,
results
multi-statements
password=password
pipe
port=port_num
protocol={TCP|SOCKET|
PIPE|MEMORY}
return-found-rows
shared-memory-base-
name=name
socket=path
ssl-ca=file_name
ssl-capath=path
ssl-cert=file_name
ssl-cipher=cipher_list
ssl-key=file_name
timeout=seconds
user
has been replaced by connect-timeout, but
timeout
backward compatibility.
For more information about option files, see
Return Values
Zero for success. Nonzero if you specify an unknown option.
Example
The following
cause options to be read from the
mode:
MYSQL mysql;
mysql_init(&mysql);
mysql_options(&mysql,MYSQL_OPT_COMPRESS,0);
mysql_options(&mysql,MYSQL_READ_DEFAULT_GROUP,"odbc");
mysql_options(&mysql,MYSQL_INIT_COMMAND,"SET autocommit=0");
if (!mysql_real_connect(&mysql,"host","user","passwd","database",0,NULL,0))
{
fprintf(stderr, "Failed to connect to database: Error: %s\n",
mysql_error(&mysql));
}
This code requests that the client use the compressed client/server protocol and read the additional
options from the
C API Function Descriptions
Description
If no argument or nonzero argument, enable use of
LOCAL; otherwise disable.
Maximum size of packet that client can read from server.
Enable multiple result sets from multiple-statement executions or
multi-
stored procedures.
Enable the client to send multiple statements in a single string
(separated by ";").
Default password.
Use named pipes to connect to a MySQL server on Windows.
Default port number.
The protocol to use when connecting to the server.
Tell
when using UPDATE.
Shared-memory name to use to connect to server.
Default socket file.
Certificate Authority file.
Certificate Authority directory.
Certificate file.
Permissible SSL ciphers.
Key file.
Like connect-timeout.
Default user.
calls request the use of compression in the client/server protocol,
mysql_options()
[odbc]
section in the
odbc
my.cnf
to return found rows instead of updated rows
mysql_info()
timeout
Section 4.2.3.3, "Using Option
group of option files, and disable transaction autocommit
file.
2173
LOAD DATA
is still supported in MySQL 5.0 for
Files".

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents