重置 InnoDB 表的日志文件
发布日期:2021-09-20 08:07:30
浏览次数:44
分类:技术文章
本文共 526 字,大约阅读时间需要 1 分钟。
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 stop
- Step 3)
rm /var/log/mysql/ib_logfile[01]
- Step 4)
service mysql start
(ib_logfile0 and ib_logfile1 are recreated)
转载地址:https://blog.csdn.net/caiyiii/article/details/11472497 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
留言是一种美德,欢迎回访!
[***.207.175.100]2024年04月03日 23时29分44秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
MTK 一个分支兼容多客户开机Logo方案
2019-04-26
Android9.0 无锁屏下连续锁屏-解屏2次,画面点击无响应 bug 解决办法
2019-04-26
如何获取IMEI号和MEID号
2019-04-26
android apk 的root 权限和USB adb 权限的区别
2019-04-26
Android8.1 出厂前默认开启USB调试且自动授权,恢复出厂关闭USB调试方案
2019-04-26
Android9.0/8.1/6.0 默认给系统 app 授予所有权限
2019-04-26
Android 8.1 允许安装未知来源权限/允许来自此来源的应用
2019-04-26
Android8.1 MTK 短信 bug 修改
2019-04-26
Ubuntu18.04 编译 Android10.0 系统源代码
2019-04-26
android9.0 density 改为 200 后 SystemUI 两个bug
2019-04-26
Android8.1 以上静默安装实现
2019-04-26
花式吊打源码中 Android.mk 集锦
2019-04-26
Android 录屏原来可以这么优雅
2019-04-26
Android 系统生成 releasekey
2019-04-26
Android10 动态分区介绍
2019-04-26
Android10(Q) GMS 全家桶移植
2019-04-26
RK3288 8.1 横屏方案修改
2019-04-26