Mysql:Changes in MySQL 5.7.13 (2016-06-02, General Availability):maximum length of MySQL user names was increased from 16 to 32 characters
Changes in MySQL 5.7.13 (2016-06-02, General Availability)
-
In MySQL 5.7.8, the maximum length of MySQL user names was increased from 16 to 32 characters, but some applicable contexts for this increase were overlooked. Additional changes in maximum user name length now have been applied:
-
The size of these
mysql
system table columns is increased:-
The
definer
column of theevent
andproc
tables -
The
grantor
column of theprocs_priv
andtables_priv
tables
In each case, the column previously was defined as
CHAR(77)
, where 77 was chosen to permit a
string containing a user name up to 16 characters, auser_name
@host_name
@
character, and a host name up to 60 characters. Each column now is defined asCHAR(93)
, reflecting an increase in permitted user name length from 16 to 32 characters. -
-
A similar change from
CHAR(77)
toCHAR(93)
applies to theDEFINER
column of theseINFORMATION_SCHEMA
tables:EVENTS
,ROUTINES
,TRIGGERS
,VIEWS
. Along with the changes toINFORMATION_SCHEMA
tables, output from any correspondingSHOW
statements now displaysDEFINER
values up to 93 characters. Examples of affected statements:SHOW EVENTS
,SHOW TRIGGERS
,SHOW PROCEDURE STATUS
.
If you upgrade to this MySQL release from an earlier version, you must run mysql_upgrade (and restart the server) to incorporate the changes to the
mysql
system database. A server from MySQL 5.7.13 or higher for which mysql_upgrade has not been run continues to permit a maximum of 77 characters in the system tables mentioned previously, and anER_USER_COLUMN_OLD_LENGTH
error will occur in those system table contexts where a
value from 78 to 93 characters long is given.user_name
@host_name
-
-
It is possible to use
ALTER TABLE
to change the default value of a columncol_name
, which may change the value of a generated column expression that refers to the column usingDEFAULT(
. For this reason,col_name
)ALTER TABLE
operations that change the definition of a column now cause a table rebuild if any generated column expression usesDEFAULT()
. (Bug #80299, Bug #22680839)
It is possible to use ALTER TABLE
to change the default
value of a column col_name
, which may
change the value of a generated column expression that refers to the column
using DEFAULT(
. For this reason, col_name
)ALTER TABLE
operations that change
the definition of a column now cause a table rebuild if any generated column
expression uses DEFAULT()
.
原文地址:https://www.cnblogs.com/jinzhenshui/p/12584082.html
- MySQL 教程
- MySQL 安装
- MySQL 管理与配置
- MySQL PHP 语法
- MySQL 连接
- MySQL 创建数据库
- MySQL 删除数据库
- MySQL 选择数据库
- MySQL 数据类型
- MySQL 创建数据表
- MySQL 删除数据表
- MySQL 插入数据
- MySQL 查询数据
- MySQL where 子句
- MySQL UPDATE 查询
- MySQL DELETE 语句
- MySQL LIKE 子句
- mysql order by
- Mysql Join的使用
- MySQL NULL 值处理
- MySQL 正则表达式
- MySQL 事务
- MySQL ALTER命令
- MySQL 索引
- MySQL 临时表
- MySQL 复制表
- 查看MySQL 元数据
- MySQL 序列 AUTO_INCREMENT
- MySQL 处理重复数据
- MySQL 及 SQL 注入
- MySQL 导出数据
- MySQL 导入数据
- MYSQL 函数大全
- MySQL Group By 实例讲解
- MySQL Max()函数实例讲解
- mysql count函数实例
- MYSQL UNION和UNION ALL实例
- MySQL IN 用法
- MySQL between and 实例讲解
- 非易失性WAL buffer实现解析(三)
- android实现切换日期左右无限滑动效果
- 疯子的算法总结(七) 字符串算法之 manacher 算法 O(N)解决回文串
- PostgreSQL WAL解析:构建WAL记录准备
- CodeForces - 225C. Barcode(DP)
- android studio 3.0 service项目背景音乐实现
- 疯子的算法总结(六) 复杂排序算法 ① 归并排序 merge_sort()
- PostgreSQL扫描方法综述
- CodeForces - 224C. Bracket Sequence (栈模拟)简单做法
- XLOG段文件跳号现象分析
- codeforce 227E 矩阵快速幂求斐波那契+N个连续数求最大公约数+斐波那契数列的性质
- 疯子的算法总结(五) 矩阵乘法 (矩阵快速幂)
- codeforce 227D Naughty Stone Piles (贪心+递归+递推)
- POJ3614防晒霜 这个贪心有点东西(贪心+优先队列)
- 环形均分纸牌问题(中位数)