首页 电脑 电脑学堂 查看内容

每天MySQL自动优化

2011-5-31 10:16 636 0

摘要:   下面说下几个参数的含义  -a, --analyze 分析 [Analyze given tables]  -o, --optimize 优化 [Optimize table]  -A, --al...
关键词: mysql opt corrupted optimize analyze checked repair tables shell table

  下面说下几个参数的含义  -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  * * */1 * *  /opt/shell/mysql_opt.sh
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部