博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
关于mysql的ddl_log.log文件
阅读量:7303 次
发布时间:2019-06-30

本文共 1587 字,大约阅读时间需要 5 分钟。

今天在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 and . 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 , 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 . 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,如需转载请自行联系原作者
你可能感兴趣的文章
java基础-序列化和反序列化
查看>>
linux fork()函数
查看>>
JA-SIG(CAS)学习笔记3
查看>>
svn的前世今生和安装使用
查看>>
HTNL5 类型化数组
查看>>
怎样确保java代码在抛出异常时都回滚,而不只是运行时异常
查看>>
定位网络攻击一例
查看>>
开源企业级数字化服务平台——Choerodon猪齿鱼发布0.11版本
查看>>
JAVA多重继承的实现
查看>>
rsyncd.conf 教程
查看>>
python入门(二)数据库操作
查看>>
修改Linux用户组名
查看>>
卡尔维诺中文站-- 寒冬夜行人的作者
查看>>
IOS 企业应用扫码发布流程 OTA升级
查看>>
AOP9
查看>>
JPA应用小例子
查看>>
UITableView中Cell的操作
查看>>
基于redis的分布式锁的分析与实践
查看>>
DispatcherServlet默认配置
查看>>
建立独立于应用的solr全文搜索
查看>>