今天在mysql数据库的data目录下发现了这样的一个log文件

ddl_log.log 于是官网查看了一下,英文好的可以自己阅读一下,不好的就麻烦了:(

The DDL Log

The DDL log, or metadata log, records metadata operations generated by data definition statements such as DROP TABLEand ALTER TABLE. MySQL uses this log to recover from crashes occurring in the middle of a metadata operation. When executing the statement DROP TABLE t1, t2, we need to ensure that both t1 and t2 are dropped, and that each table drop is complete. Another example of this type of SQL statement is ALTER TABLE t3 DROP PARTITION p2, where we must make certain that the partition is completely dropped and that its definition is removed from the list of partitions for table t3.

A record of metadata operations such as those just described are written to the file ddl_log.log, in the MySQL data directory. This is a binary file; it is not intended to be human-readable, and you should not attempt to modify its contents in any way.

ddl_log.log is not created until it is actually needed for recording metadata statements, and is removed following a successful start of mysqld. Thus, it is possible for this file not to be present on a MySQL server that is functioning in a completely normal manner.

重点:

Currently, ddl_log.log can hold up to 1048573 entries, equivalent 4 GB in size. Once this limit is exceeded, you must rename or remove the file before it is possible to execute any additional DDL statements. This is a known issue which we are working to resolve (Bug #83708).

There are no user-configurable server options or variables associated with this file.

本文转自andylhz 51CTO博客,原文链接:http://blog.51cto.com/andylhz2009/1948981,如需转载请自行联系原作者

关于mysql的ddl_log.log文件相关推荐

  1. mysql ddl log 源码_MySQL中ddl_log.log初步认识

    今天发现测试数据库环境里在凌晨00:00时产生的一个日志文件-ddl_log.log,打开内容几乎是杂乱无章的,只有零散的信息,感觉和表中分区有关系,然后推断可能是因为定时event在00:00时调用 ...

  2. php mysql log文件,mysql log文件【读书笔记1】_MySQL

    bitsCN.com mysql log文件[读书笔记1] 一,错误日志文件:Error.log 记录Mysql Server运行过程所有较为严重的警告或错误信息,以及Mysql Server启动和关 ...

  3. MySQL体系结构之物理文件

    一.MySQL日志文件 mysql日志文件及功能: 日志文件 功能 错误日志 记录启动.停止.运行过程中mysqld时出现的问题 通用日志 记录建立客户端连接和执行的语句 二进制日志 记录更改数据的所 ...

  4. atitit.跨语言实现备份mysql数据库 为sql文件特性 api 兼容性java c#.net php js

    atitit.跨语言实现备份mysql数据库 为sql文件特性 api 兼容性java c#.net php js 1. 两个方法:: bat vs mysqldump(推荐)  vs   lang  ...

  5. 【网络安全】如何搭建MySQL恶意服务器读取文件?

    前言 注:本文不涉及对MySQL协议报文研究,仅讲解原理,并且做部分演示. 搭建MySQL恶意服务器读取文件这件事,虽然直接利用门槛较高,但是由于在网上看到了一种比较新颖的利用方式(利用社会工程学引诱 ...

  6. mysql查看系统运行日志文件_mysql自身运行日志文件详解

    概述 日志文件是MySQL数据库的重要组成部分.MySQL有几种不同的日志文件,通常包括错误日志文件,二进制日志,通用日志,慢查询日志,等等.这些日志可以帮助我们定位mysqld内部发生的事件,数据库 ...

  7. mysql中my.cnf文件_MySQL中my.cnf文件选项

    MySQL中my.cnf文件选项 mysqld服务器维护两种变量.全局变量影响服务器的全局操作.会话变量影响具体客户端连接相关操作. 可以在选项文件或命令行中设置全局变量. 用Set命令设置会话变量, ...

  8. mysql 导入导出.sql文件

    备份数据库(包含全部表和全部存储过程): C:\Documents and Settings\Administrator>mysqldump -h localhost -u root -p -R ...

  9. mysql怎么用sb文件_mysql脚本mysql_safe解释、mysql.sock文件、mysql_install_db

    1.首先解释下,启动mysql时为何会调用mysql_safe脚本来启动mysql [root@localhost ~]# /etc/init.d/mysqld start 正在启动 mysqld: ...

最新文章

  1. 一些少见的下载地址(按需求更新)
  2. SAP Spartacus的登录验证机制 - user login Authentication
  3. 人工智能AI实战100讲(一)-机器人语义建图(上)
  4. 【文末有福利】艺术创造规则,而不是规则创造艺术
  5. python用pip安装pygame_安装pygame和pip的问题以及过程
  6. 使用jQuery获取GridView的数据行的数量
  7. python二叉树最大深度的计算_Python学习笔记24(二叉树遍历、最大深度、最大宽度)...
  8. 基于TCP/UDP的socket编程
  9. C语言中如何在不使用数组的情况下求方差?使用数组和使用for循环的区别。
  10. Trie树(字典树)从懵逼到入门
  11. ro手游服务器维护公告,仙境传说ro手游9月26日5点至10点停服维护公告
  12. matlab2015的marker,matlab中markersize什么意思
  13. Open api qps request limit reached
  14. pubwin扫描安装
  15. 为什么我的程序中没有stdafx.h头文件?
  16. Python随机生成出生日期
  17. 阿里云超级码力第二场记录
  18. Vcam项目下载及编译
  19. 获取安卓应用包名和入口 Activity
  20. 基于华为云设计的智能家居控制系统(STM32+ESP8266)

热门文章

  1. NASM汇编helloworld图解
  2. 图解在反汇编中识别VC++之if-else分支语句
  3. powertool 使用学习总结
  4. Python 全栈开发:python字符串切片
  5. Docker最佳实践-部署LNMP环境
  6. JS报错修改日记(1):Uncaught ReferenceError: showQRcode is not defined
  7. Java 第三周总结
  8. UVA 10229 Modular Fibonacci
  9. NGUI-制作位图字体以及图文混排
  10. [转]sql update 触发器 获得被update的行的信息详解