14.8.1 Enabling File Formats
14.8 InnoDB File-Format Management 14.8.1 Enabling File Formats
14.8.2 Verifying File Format Compatibility
14.8.3 Identifying the File Format in Use
14.8.4 Modifying the File Format 随着InnoDB的发展, data files 格式 不兼容以前的InnoDB 版本有时候需要支持新的功能。 为了帮助管理通用型在升级和降级情况下的兼容性, 系统运行不同版本的 的MySQL, InnoDB 使用命令文件格式。 InnoDB 当前之处两种文件格式, Antelope and Barracuda. mysql> show variables like '%format%';
+--------------------------+-------------------+
| Variable_name | Value |
+--------------------------+-------------------+
| binlog_format | MIXED |
| date_format | %Y-%m-%d |
| datetime_format | %Y-%m-%d %H:%i:%s |
| default_week_format | 0 |
| innodb_file_format | Antelope | 1. Antelope(羚羊) 是原始的InnoDB 文件格式, 而之前没有名字。 它支持InnoDB 表的 COMPACT and REDUNDANT row formats 对于InnoDB 表 在MySQL 5.6是默认的 file format 来确保兼容早期版本的Mysql 2.Barracuda(梭鱼)是最新的文件格式, 它支持所有的InnoDB 行格式 包含最新的 COMPRESSED and DYNAMIC row formats. 这个章节讨论启用文件格式对于新的InnoDB 表, 验证不同文件格式的兼容性在不同的MySQL 发布版本 确定文件格式的使用 14.8.1 Enabling File Formats 启用文件格式: mysql> show variables like '%innodb_file_format%';
+--------------------------+----------+
| Variable_name | Value |
+--------------------------+----------+
| innodb_file_format | Antelope |
| innodb_file_format_check | ON |
| innodb_file_format_max | Antelope |
+--------------------------+----------+
3 rows in set (0.00 sec) innodb_file_format 配置选项 定义一个文件格式 用于当InnoDB 表被创建在 file_per_table 表空间 Antelope(羚羊) is the default innodb_file_format. 为了防止Barracuda 文件格式支持的功能的使用, 让你的数据库无法访问MySQL 5.1内建的InnoDB 和之前的版本, 设置 innodb_file_format 为Antelope 另外, 你可以禁用innodb_file_per_table 让新的表创建在system tablespace. system tablespace 是存储在原始的Antelope file format. 你可以设置innodb_file_format 的值在命令行当你启动mysqld的时候, 或者 在选项文件my.cnf. 你也可以动态改变它 通过SET GLOBAL statement. mysql> SET GLOBAL innodb_file_format=Barracuda;
Query OK, 0 rows affected (0.00 sec) 注意: ALTER TABLE 操作重新创建InnoDB 表使用当前的innodb_file_format setting. 尽管Oracle 建议使用Barracuda format 对于新的表,在Mysql 5.6 默认的格式是Antelope 为了最大的兼容性在复制配置包含早期的MySQL 版本。
14.8.1 Enabling File Formats的更多相关文章
- 14.8.2 Verifying File Format Compatibility 校验文件格式兼容性:
14.8.2 Verifying File Format Compatibility 校验文件格式兼容性: 14.8.2.1 Compatibility Check When InnoDB Is St ...
- InnoDB的Named File Formats
随着InnoDB存储引擎的发展,新的页数据结构有时用来支持新的功能特性.比如前面提到的InnoDB Plugin,提供了新的页数据结构来支持表压缩功能,完全溢出的(Off page)大变长字符类型字段 ...
- OVF? OVA? VMDK? – File Formats and Tools for Virtualization
I recently worked on a project to create a “virtual appliance” for one of our customers. They have a ...
- dpkg -S {file} #ubuntu 14.04 rpm -qf {file} #centos 7
Linux查找命令或组件对应安装包的方法原创FJEagle 最后发布于2017-12-15 19:10:06 阅读数 4603 收藏展开Linux查找命令或组件对应安装包的方法当新搭建服务器或者维护不 ...
- 使用 EasyBCD 安装Ubuntu 14.04 Error 15: file not found错误的解决方法
今天安装Window7 和 Ubuntu 14.04 双系统时,出现如下异常,记录一下. 安装过程是参考 http://www.linuxidc.com/Linux/2014-04/100369.ht ...
- viedo formats vs file formats
web的视频世界,有两个概念非常容易搞混淆,即:视频文件的格式,比如.mp4,.flv,.ogv等等,以及视频本身的格式,就是指的codec算法名称,比如h.264,mpeg-4等. http://w ...
- XV6学习(14)Lab fs: File system
代码在github上. 这次实验是要对文件系统修改,使其支持更大的文件以及符号链接,实验本身并不是很复杂.但文件系统可以说是XV6中最复杂的部分,整个文件系统包括了七层:文件描述符,路径名,目录,in ...
- Does the OpenSceneGraph have a native file format?
From OpenSceneGraph-3.0 onwards we have new native file formats based on generic serializers that ar ...
- Read / Write Excel file in Java using Apache POI
Read / Write Excel file in Java using Apache POI 2014-04-18 BY DINESH LEAVE A COMMENT About a year o ...
随机推荐
- Week10(11月11日):一个激动的日子
Part I:提问 =========================== 请回答视图和控制器传递数据的方法. Part II:案例学习 =========================== Mu ...
- xcode生成的IOS安装文件的位置
通过xcode生成可以在IOS系统下运行的文件的具体设置: 1.首先,需要有相应的程序,并且在mac下的xcode编译后,能够在模拟器中完美运行. 2.单击xcode,打开Xcode > Pre ...
- cglib源码学习交流
背景 前段时间在工作中,包括一些代码阅读过程中,spring aop经常性的会看到cglib中的相关内容,包括BeanCopier,BulkBean,Enancher等内容,以前虽大致知道一些内容,原 ...
- Sqlite ContentProvider Loader 上下文 对话框
一.整体工程图 二.activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/re ...
- C语言,链表反转
倒序思路:依次把后面的节点移往头部. struct Node{ struct Node* next; int data; }; typedef struct Node NODE; NODE* inve ...
- 【C++】第二章:Hello World!
1.开发工具:Microsoft Visual C++ v6.0 2.通过IDE建立Hello World程序: 我们可以看到三个文件夹结构,分别是: Source Files(源文件). Heade ...
- haproxy path_beg
path_beg : prefix match 前缀匹配 path_dir : subdir match path_dom : domain match path_end : suffix match ...
- 基于visual Studio2013解决C语言竞赛题之0805成绩输出
题目
- 搭建python集成开发环境.
需要搭建的内容一共有三项, python ,wxpython 以及spe. 其中spe 是python 的可视化集成开发环境(ide) , 其需要python GUI图形库wxpython的支 ...
- windows下安装mysql5.6.13的主从复制
如下操作均在vmware 虚拟机中winows xp 测试成功 中间走了很多弯路,网上的很多资料都是针对5.1以前的版本,在新版中根本无法使用,所以根据自己的实践整理了这篇文章 主服务:192.168 ...