随笔分类 - MySQL
摘要:相关参数说明 innodb_large_prefix Command-Line Format --innodb-large-prefix=ON Deprecated Yes System Variable innodb_large_prefix Scope Global Dynamic Yes Ty
阅读全文
摘要:支持的匹配模式(常用) 定位符 符号 描述 ^ 匹配输入字符串的开始位置。如果设置了 RegExp 对象的 Multiline 属性,^ 也匹配 '\n' 或 '\r' 之后的位置。 $ 匹配输入字符串的结束位置。如果设置了RegExp 对象的 Multiline 属性,$ 也匹配 '\n' 或 '
阅读全文
摘要:创建表结构 drop table if exists history; drop table if exists history_str; drop table if exists history_log; drop table if exists history_text; drop table
阅读全文
摘要:构造测试数据 相关函数 函数 说明 rand() 随机函数,会生成0~1之间的随机数 md5(input) 散列函数,根据输入值的不同,生成不同的32位字符串(但只有09,af共16种字符) substring(string, position, length) 字符串截取函数,会截取字符串stri
阅读全文
摘要:MySQL磁盘满移动数据到其他磁盘 环境信息 [root@centos7 ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) [root@centos7 ~]# mysql -uroot -prootroot -e "se
阅读全文
摘要:MySQL 8.0特性-自增变量的持久化 在MySQL 8.0之前,自增主键AUTO_INCREMENT的值如果大于max(primary key)+1,在MySQL重启后,会重置AUTO_INCREMENT=max(primary key)+1,这种现象在某些情况下会导致业务主键冲突或者其他难以发
阅读全文

浙公网安备 33010602011771号