Oracle 5.0 Reference Manual page 2196

Table of Contents

Advertisement

Note
Do not attempt to encrypt the password before calling
mysql_real_connect(); password encryption is handled automatically by
the client API.
• The
and
user
passwd
object. By default, this is latin1, but can be changed by calling
MYSQL_SET_CHARSET_NAME, "charset_name")
is the database name. If
db
• If
is not 0, the value is used as the port number for the TCP/IP connection. Note that the
port
parameter determines the type of the connection.
• If
is not NULL, the string specifies the socket or named pipe to use. Note that the
unix_socket
parameter determines the type of the connection.
host
• The value of
client_flag
enable certain features.
Flag Name
CLIENT_COMPRESS
CLIENT_FOUND_ROWS
CLIENT_IGNORE_SIGPIPE
CLIENT_IGNORE_SPACE
CLIENT_INTERACTIVE
CLIENT_LOCAL_FILES
CLIENT_MULTI_RESULTS
CLIENT_MULTI_STATEMENTS
CLIENT_NO_SCHEMA
CLIENT_ODBC
CLIENT_SSL
C API Function Descriptions
parameters use whatever character set has been configured for the
is not NULL, the connection sets the default database to this value.
db
is usually 0, but can be set to a combination of the following flags to
Flag Description
Use compression protocol.
Return the number of found (matched) rows, not the number of
changed rows.
Prevents the client library from installing a
handler. This can be used to avoid conflicts with a handler that
the application has already installed.
Permit spaces after function names. Makes all functions names
reserved words.
Permit
interactive_timeout
wait_timeout
connection. The client's session
is set to the value of the session
variable.
Enable
LOAD DATA LOCAL
Tell the server that the client can handle multiple result sets from
multiple-statement executions or stored procedures. This flag
is automatically enabled if
enabled. See the note following this table for more information
about this flag.
Tell the server that the client may send multiple statements in
a single string (separated by ";"). If this flag is not set, multiple-
statement execution is disabled. See the note following this
table for more information about this flag.
Do not permit the
is for ODBC. It causes the parser to generate an error if you use
that syntax, which is useful for trapping bugs in some ODBC
programs.
Unused.
Use SSL (encrypted protocol). Do not set this option within
an application program; it is set internally in the client
library. Instead, use
mysql_real_connect().
2176
mysql_options(mysql,
prior to connecting.
[457]
seconds (instead of
[506]
seconds) of inactivity before closing the
wait_timeout
interactive_timeout
handling.
CLIENT_MULTI_STATEMENTS
db_name.tbl_name.col_name
mysql_ssl_set()
MYSQL
host
signal
SIGPIPE
[506]
variable
[457]
is
syntax. This
before calling

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents