MySQL--连接属性
The capability flags are used by the client and server to indicate which features they support and want to use.
Protocol::CapabilityFlags:
CLIENT_LONG_PASSWORD-
Use the improved version of
Old Password Authentication.NoteAssumed to be set since 4.1.1.
- Value
-
0x00000001
CLIENT_FOUND_ROWS-
Send
found rowsinstead ofaffected rowsinEOF_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 be 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.
NoteNo 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
-
Will 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.
Notethis value was
CLIENT_CHANGE_USERin 3.22, unused in 4.0 CLIENT_INTERACTIVE-
wait_timeoutversuswait_interactive_timeout.- Value
-
0x00000400
- Server
-
Supports interactive and noninteractive clients.
- Client
-
Client is interactive.
- See
CLIENT_SSL-
- Value
-
0x00000800
- Server
-
Supports SSL.
- Client
-
Switch to SSL after sending the capability-flags.
CLIENT_IGNORE_SIGPIPE-
- Value
-
0x00001000
- Client
-
Do not issue
SIGPIPEif network failures occur (libmysqlclient only). - See
CLIENT_TRANSACTIONS-
- Value
-
0x00002000
- Server
-
Can send status flags in
EOF_Packet. - Client
-
Expects status flags in
EOF_Packet.
NoteThis flag is optional in 3.23, but always set by the server since 4.0.
CLIENT_RESERVED-
Unused.
- Value
-
0x00004000
NoteWas named
CLIENT_PROTOCOL_41in 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_QUERYandCOM_STMT_PREPARE. - Client
-
May send multiple statements per
COM_QUERYandCOM_STMT_PREPARE.
NoteWas named
CLIENT_MULTI_QUERIESin 4.1.0, renamed later.- Requires
CLIENT_MULTI_RESULTSCLIENT_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_PLUGIN_AUTH-
- Value
-
0x00080000
- Server
-
Sends extra data in Initial Handshake Packet and supports the pluggable authentication protocol.
- Client
-
Supports authentication plugins.
- Requires
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
Protocol::HandshakeResponse41is a length-encoded integer.
NoteThe 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 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--连接属性的更多相关文章
- Java Mysql连接池配置和案例分析--超时异常和处理
前言: 最近在开发服务的时候, 发现服务只要一段时间不用, 下次首次访问总是失败. 该问题影响虽不大, 但终究影响用户体验. 观察日志后发现, mysql连接因长时间空闲而被关闭, 使用时没有死链检测 ...
- [原创]java WEB学习笔记80:Hibernate学习之路--- hibernate配置文件:JDBC 连接属性,C3P0 数据库连接池属性等
本博客的目的:①总结自己的学习过程,相当于学习笔记 ②将自己的经验分享给大家,相互学习,互相交流,不可商用 内容难免出现问题,欢迎指正,交流,探讨,可以留言,也可以通过以下方式联系. 本人互联网技术爱 ...
- mysql连接字符集default
用mysql客户端工具输入中文数据报错,或乱码问题解决 数据库字符集为latin1时 用mysql工具,然后选择连接>l连接属性>高级>字符集选择default
- 记一次网络原因导致的mysql连接中断问题(druid)
date: 2018-04-19 21:00 tag: java,mysql,exception,mat,调试,jvm 工具: gceasy.io, MAT 线上系统出现一个诡异的bug,通过heap ...
- Navicat for MySQL连接出错:1251
平台:window10 x64+mysql-8.0.15-winx64+navicat_trial_11.1.20.0(PatchNavicat破解) 错误提示:1251-Client does no ...
- redis mysql 连接池 之 golang 实现
1 mysql 连接池代码 package lib import ( "database/sql" "fmt" "strconv" &quo ...
- mysql连接类与ORM的封装
ORM: - ORM什么是? 类名 ---> 数据库表 对象 ---> 记录 对象.属性 ---> 字段 - ORM的优缺点: 优点: 可跨平台,可以通过对象.属性取值,对象.方法, ...
- Mysql 连接路径 url 参数解析
1.mysql - url 参数解析 url:jdbc:mysql://127.0.0.1:3306/user?useUnicode=true&characterEncoding=utf8 u ...
- navicat for mysql连接本地数据库
navicat for mysql连接本地数据库 打算使用navicat连接本地数据库,连接的时候,一直连接不上.然后猜想是不是本地数据库没有设置好.输入mysql,出错内容:access denie ...
- MySQL 连接为什么挂死了?
摘要:本次分享的是一次关于 MySQL 高可用问题的定位过程,其中曲折颇多但问题本身却比较有些代表性,遂将其记录以供参考. 一.背景 近期由测试反馈的问题有点多,其中关于系统可靠性测试提出的问题令人感 ...
随机推荐
- MySQL用户远程登陆
默认情况下,root用户是不具备远程登录的权限. 1.切换mysql表,查看当前用户信息 select host,user from user where user = 'root' 2.给用户进行授 ...
- CloudStack cloud数据库op_host_capacity表type与控制板上的内容的对应关系
listCapacity: type 名称 0 内存 1 CPU 3 主存储 4 公用IP地址 5 管理类IP地址 6 辅助存储 7 VLAN 9 本地存储 ViewResponseHelper.ja ...
- The JRE could not be found.Edit the server and change the JRE location.
之前更改了了一个较低的jdk的版本看了看一个项目的代码,不知所云,然后再改回来, 混乱之中只要启动Tomcat就出现这种错误,还是无法找到JRE,最后如此解决: 在Windows->Prefer ...
- 在UC浏览器上很炫的一个效果
效果简述: 这个效果将会强行去除UC浏览器的网址输入框和底部的菜单栏,这样网页将会占据整个手机界面.感觉看起来很像是一个APP. 浏览器界面右下角将会出现一个向上的标志,用来唤出简单的菜单栏. (界面 ...
- hdu 1142 A Walk Through the Forest
http://acm.hdu.edu.cn/showproblem.php?pid=1142 这道题是spfa求最短路,然后dfs()求路径数. #include <cstdio> #in ...
- Codeforces 366C Dima and Salad
http://codeforces.com/problemset/problem/366/C 题意:在一个冰箱里有n种水果,并且这些水果每一种都有一个美味度和一个卡路里的属性, 小明要从这些水果中选出 ...
- ANDROID使用MULTIPARTENTITYBUILDER实现类似FORM表单提交方式的文件上传
最近在做 Android 端文件上传,要求采用 form 表单的方式提交,项目使用的 afinal 框架有文件上传功能,但是始终无法与php写的服务端对接上,无法上传成功.读源码发现:afinal 使 ...
- 精确覆盖DLX算法模板另一种写法
代码 struct DLX { int n,id; int L[maxn],R[maxn],U[maxn],D[maxn]; ]; int H[ms]; ) //传列长 { n=nn; ;i<= ...
- 主题简介 ASP .NET
由控件的外观.样式组成的集合,由一个文件组构成,存放在App_Themes文件夹下. 主题包括:皮肤文件(.Skin).CSS文件(.CSS).图片.其它资源等. 主题的作用:统一设置Web页面的外观 ...
- hdu 4427 Math Magic
一个长了一张数学脸的dp!!dp[ i ][ s ][ t ] 表示第 i 个数,sum为 s ,lcm下标为 t 时的个数.显然,一个数的因子的lcm还是这个数的因子,所以我们的第三维用因子下标代替 ...