每天MySQL自动优化
浏览:2322次 出处信息
下面说下几个参数的含义
-a, --analyze 分析 [Analyze given tables]
-o, --optimize 优化 [Optimize table]
-A, --all-databases 所有的数据库 [Check all the database]
--auto-repair 自动修复 [If a checked table is corrupted, automatically fix it. Repairing will be done after all tables have been checked, if corrupted ones were found]
vi /opt/shell/mysql_opt.sh
/usr/local/mysql/bin/mysqlcheck -Aao -auto-repair -uroot -p
加入 crontab
-o, --optimize 优化 [Optimize table]
-A, --all-databases 所有的数据库 [Check all the database]
--auto-repair 自动修复 [If a checked table is corrupted, automatically fix it. Repairing will be done after all tables have been checked, if corrupted ones were found]
vi /opt/shell/mysql_opt.sh
/usr/local/mysql/bin/mysqlcheck -Aao -auto-repair -uroot -p
加入 crontab
* * */1 * * /opt/shell/mysql_opt.sh
建议继续学习:
- WEB系统需要关注的一些点 (阅读:14937)
- 30分钟3300%性能提升――python+memcached网页优化小记 (阅读:12321)
- 基于SSD的数据库性能优化 (阅读:7568)
- jQuery性能优化指南 (阅读:7444)
- 一次简单C程序的性能优化 (阅读:5719)
- mysql sql 百万级数据库优化方案 (阅读:5216)
- 一次神奇的MySQL优化 (阅读:5043)
- PHP最佳实践 (阅读:5198)
- Linux 64位, MySQL, Swap & Memory 优化 (阅读:4641)
- PHP 性能优化技巧-google (阅读:4682)
QQ技术交流群:445447336,欢迎加入!
扫一扫订阅我的微信号:IT技术博客大学习
扫一扫订阅我的微信号:IT技术博客大学习
<< 前一篇:PHP操作MongoDB时的整数问题及对策
后一篇:Mysql 安全 >>
文章信息
- 作者:Mike.Xu 来源: DBA Blog
- 标签: mysqlcheck 优化
- 发布时间:2011-06-24 13:58:41
建议继续学习
近3天十大热文
-
[69] Java开发岗位面试题归类汇总
-
[67] Go Reflect 性能
-
[64] IOS安全–浅谈关于IOS加固的几种方法
-
[63] 如何拿下简短的域名
-
[62] 【社会化设计】自我(self)部分――欢迎区
-
[61] android 开发入门
-
[60] Oracle MTS模式下 进程地址与会话信
-
[50] WEB系统需要关注的一些点
-
[50] 图书馆的世界纪录
-
[45] Twitter/微博客的学习摘要