mysql--Connection Properties

Source: Internet
Author: User

The capability flags is used by the client and server to indicate which features they, and want to use.

Protocol::capabilityflags:
CLIENT_LONG_PASSWORD

Use the improved version of Old Password Authentication .

Note

Assumed to is set since 4.1.1.

Value

0x00000001

CLIENT_FOUND_ROWS

Send found rows instead of affected rows in EOF_Packet .

Value

0x00000002

CLIENT_LONG_FLAG

Longer flags in Protocol::ColumnDefinition320 .

Value

0x00000004

Server

Supports longer flags.

Client

expects longer flags.

CLIENT_CONNECT_WITH_DB

Database (Schema) name can specified on connect in Handshake Response Packet .

Value

0x00000008

Server

Supports Schema-name in Handshake Response Packet .

Client

Handshake Response PacketContains a schema-name.

CLIENT_NO_SCHEMA
Value

0x00000010

Server

Do not permit database.table.column .

CLIENT_COMPRESS

Compression protocol supported.

Value

0x00000020

Server

Supports compression.

Client

Switches to Compression compressed protocol after successful authentication.

CLIENT_ODBC
Value

0x00000040

Special handling of ODBC behavior.

Note

No special behavior since 3.22.

CLIENT_LOCAL_FILES

Can use LOAD DATA LOCAL .

Value

0x00000080

Server

Enables the LOCAL INFILE request of LOAD data| Xml.

Client

Would handle LOCAL INFILE request.

CLIENT_IGNORE_SPACE
Value

0x00000100

Server

Parser can ignore spaces before ‘(‘ .

Client

Let the parser ignore spaces before ‘(‘ .

CLIENT_PROTOCOL_41
Value

0x00000200

Server

Supports the 4.1 protocol.

Client

Uses the 4.1 protocol.

Note

This value CLIENT_CHANGE_USER is in 3.22, unused in 4.0

CLIENT_INTERACTIVE

wait_timeoutVersus wait_interactive_timeout .

Value

0x00000400

Server

Supports Interactive and noninteractive clients.

Client

Client is interactive.

See

Mysql_real_connect ()

CLIENT_SSL
Value

0x00000800

Server

Supports SSL.

Client

Switch to SSL after sending the capability-flags.

CLIENT_IGNORE_SIGPIPE
Value

0x00001000

Client

Issue SIGPIPE If network failures occur (Libmysqlclient only).

See

Mysql_real_connect ()

CLIENT_TRANSACTIONS
Value

0x00002000

Server

Can Send status flags in EOF_Packet .

Client

expects status flags in EOF_Packet .

Note

This flag was optional in 3.23 and always set by the server since 4.0.

CLIENT_RESERVED

Unused.

Value

0x00004000

Note

was named in CLIENT_PROTOCOL_41 4.1.0.

CLIENT_SECURE_CONNECTION
Value

0x00008000

Server

Supports Authentication::Native41 .

Client

Supports Authentication::Native41 .

CLIENT_MULTI_STATEMENTS
Value

0x00010000

Server

Can handle multiple statements per COM_QUERY and COM_STMT_PREPARE .

Client

May send multiple statements per COM_QUERY and COM_STMT_PREPARE .

Note

was named CLIENT_MULTI_QUERIES in 4.1.0, renamed later.

Requires

CLIENT_PROTOCOL_41

CLIENT_MULTI_RESULTS
Value

0x00020000

Server

Can send multiple resultsets for COM_QUERY .

Client

Can handle multiple resultsets for COM_QUERY .

Requires

CLIENT_PROTOCOL_41

CLIENT_PS_MULTI_RESULTS
Server

Can send multiple resultsets for COM_STMT_EXECUTE .

Client

Can handle multiple resultsets for COM_STMT_EXECUTE .

Value

0x00040000

Requires

CLIENT_PROTOCOL_41

CLIENT_PLUGIN_AUTH
Value

0x00080000

Server

Sends extra data in Initial handshake Packet and supports the pluggable authentication protocol.

Client

Supports authentication plugins.

Requires

CLIENT_PROTOCOL_41

CLIENT_CONNECT_ATTRS
Value

0x00100000

Server

Permits connection attributes in Protocol::HandshakeResponse41 .

Client

Sends connection attributes in Protocol::HandshakeResponse41 .

CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA
Value

0x00200000

Server

Understands length-encoded integer for auth response data in Protocol::HandshakeResponse41 .

Client

Length of auth response data in is Protocol::HandshakeResponse41 a length-encoded integer.

Note

The flag was introduced in 5.6.6, but had the wrong value.

CLIENT_CAN_HANDLE_EXPIRED_PASSWORDS
Value

0x00400000

Server

Announces support for expired password extension.

Client

Can handle expired passwords.

CLIENT_SESSION_TRACK
Value

0x00800000

Server

Can set server_session_state_changed in the Status Flags and send session-state change data after a OK packet.

Client

expects the server to send sesson-state changes after a OK packet.

client_deprecate_eof
Value

0x01000000

Server

Can send OK after a Text Resultset.

Client

expects an OK (instead of EOF) after the resultset rows of a Text resultset.

Background

To support CLIENT_SESSION_TRACK , additional information must is sent after all successful commands. Although the OK packet is extensible, the EOF packet are not due to the overlap of their bytes with the content of the Text R Esultset Row.

Therefore, the EOF packet in the Text Resultset are replaced with an OK packet. EOF packets is deprecated as of MySQL 5.7.5.

mysql--Connection Properties

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.