时间:2021-07-01 10:21:17 帮助过:3人阅读
Use the improved version of Old Password Authentication.
Assumed to be set since 4.1.1.
0x00000001
CLIENT_FOUND_ROWSSend found rows instead of affected rows in EOF_Packet.
0x00000002
CLIENT_LONG_FLAGLonger flags in Protocol::ColumnDefinition320.
0x00000004
Supports longer flags.
Expects longer flags.
CLIENT_CONNECT_WITH_DBDatabase (schema) name can be specified on connect in Handshake Response Packet.
0x00000008
Supports schema-name in Handshake Response Packet.
Handshake Response Packet contains a schema-name.
CLIENT_NO_SCHEMA0x00000010
Do not permit database.table.column.
CLIENT_COMPRESSCompression protocol supported.
0x00000020
Supports compression.
Switches to Compression compressed protocol after successful authentication.
CLIENT_ODBC0x00000040
Special handling of ODBC behavior.
NoteNo special behavior since 3.22.
CLIENT_LOCAL_FILESCan use LOAD DATA LOCAL.
0x00000080
Enables the LOCAL INFILE request of LOAD DATA|XML.
Will handle LOCAL INFILE request.
CLIENT_IGNORE_SPACE0x00000100
Parser can ignore spaces before ‘(‘.
Let the parser ignore spaces before ‘(‘.
CLIENT_PROTOCOL_410x00000200
Supports the 4.1 protocol.
Uses the 4.1 protocol.
this value was CLIENT_CHANGE_USER in 3.22, unused in 4.0
CLIENT_INTERACTIVEwait_timeout versus wait_interactive_timeout.
0x00000400
Supports interactive and noninteractive clients.
Client is interactive.
mysql_real_connect()
CLIENT_SSL0x00000800
Supports SSL.
Switch to SSL after sending the capability-flags.
CLIENT_IGNORE_SIGPIPE0x00001000
Do not issue SIGPIPE if network failures occur (libmysqlclient only).
mysql_real_connect()
CLIENT_TRANSACTIONS0x00002000
Can send status flags in EOF_Packet.
Expects status flags in EOF_Packet.
This flag is optional in 3.23, but always set by the server since 4.0.
CLIENT_RESERVEDUnused.
0x00004000
Was named CLIENT_PROTOCOL_41 in 4.1.0.
CLIENT_SECURE_CONNECTION0x00008000
Supports Authentication::Native41.
Supports Authentication::Native41.
CLIENT_MULTI_STATEMENTS0x00010000
Can handle multiple statements per COM_QUERY and COM_STMT_PREPARE.
May send multiple statements per COM_QUERY and COM_STMT_PREPARE.
Was named CLIENT_MULTI_QUERIES in 4.1.0, renamed later.
CLIENT_PROTOCOL_41
CLIENT_MULTI_RESULTS0x00020000
Can send multiple resultsets for COM_QUERY.
Can handle multiple resultsets for COM_QUERY.
CLIENT_PROTOCOL_41
CLIENT_PS_MULTI_RESULTSCan send multiple resultsets for COM_STMT_EXECUTE.
Can handle multiple resultsets for COM_STMT_EXECUTE.
0x00040000
CLIENT_PROTOCOL_41
CLIENT_PLUGIN_AUTH0x00080000
Sends extra data in Initial Handshake Packet and supports the pluggable authentication protocol.
Supports authentication plugins.
CLIENT_PROTOCOL_41
CLIENT_CONNECT_ATTRS0x00100000
Permits connection attributes in Protocol::HandshakeResponse41.
Sends connection attributes in Protocol::HandshakeResponse41.
CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA0x00200000
Understands length-encoded integer for auth response data in Protocol::HandshakeResponse41.
Length of auth response data in Protocol::HandshakeResponse41 is a length-encoded integer.
The flag was introduced in 5.6.6, but had the wrong value.
CLIENT_CAN_HANDLE_EXPIRED_PASSWORDS0x00400000
Announces support for expired password extension.
Can handle expired passwords.
CLIENT_SESSION_TRACK0x00800000
Can set SERVER_SESSION_STATE_CHANGED in the Status Flags and send session-state change data after a OK packet.
Expects the server to send sesson-state changes after a OK packet.
CLIENT_DEPRECATE_EOF0x01000000
Can send OK after a Text Resultset.
Expects an OK (instead of EOF) after the resultset rows of a Text Resultset.
To support CLIENT_SESSION_TRACK, additional information must be sent after all successful commands. Although the OK packet is extensible, the EOF packet is not due to the overlap of its bytes with the content of the Text Resultset Row.
Therefore, the EOF packet in the Text Resultset is replaced with an OK packet. EOF packets are deprecated as of MySQL 5.7.5.
MySQL--连接属性
标签: