重置 InnoDB 表的日志文件

发布时间:2017-1-19 4:07:13 编辑:www.fx114.net 分享查询网我要评论
本篇文章主要介绍了"重置 InnoDB 表的日志文件",主要涉及到重置 InnoDB 表的日志文件方面的内容,对于重置 InnoDB 表的日志文件感兴趣的同学可以参考一下。

转载来自:http://www.jianzhanseo.com/?p=473 Don't forget to resize the InnoDB Log Files (ib_logfile0 and ib_logfile1). MySQL Source Code places a cap of the combined sizes of all InnoDB Log Files must be < 4G (4096M).For the sake of simplicity, given just two log files, here is how you can size them: Step 1) Add innodb_log_file_size=NNN to /etc/my.cnf(NNN should be 25% of innodb_buffer_pool_size or 2047M, whichever is smaller)Step 2) service mysql stopStep 3) rm /var/log/mysql/ib_logfile[01]Step 4) service mysql start (ib_logfile0 and ib_logfile1 are recreated)

上一篇:mapreduce源码分析作业提交、初始化、分配、计算过程之初始化篇
下一篇:mercurial三---netbeans下的使用

相关文章

相关评论