上一篇: mysql数据库索引查询优化的分享
每天MySQL自动优化
[ 2010/08/04 18:41 | by selboo ]
[root@74-82-173-217 ~]# mysqlcheck -Aao --auto-repair -uroot -p'*********'
下面说下几个参数的含义
-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]
-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]
加入 cronjob
* * */1 * * mysqlcheck -Aao --auto-repair -uroot -p'*********'
最后编辑: selboo 编辑于2012/05/22 15:52