MySQL社区

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
查看: 8415|回复: 4

[分析优化工具] mysqltuner数据库优化工具

[复制链接]
发表于 2013-5-9 17:09:08 | 显示全部楼层 |阅读模式
作者:未知, 整理:mysqlpub.com

mysqltuner是一个mysql数据库优化工具,mysqltuner可以针对你现有mysql数据库使用情况进行分析并给出优化建议。


安装mysqltuner:

wget http://mysqltuner.pl/mysqltuner.pl;

chmod +x mysqltuner.pl

运行:perl mysqltuner.pl

一般建议mysql运行1天以上,在运行mysqltuner分析,这样相对准确些。


运行mysqltuner后,会给出相关参数建议,可以根据自己的情况进行微调修改my.cnf数据库配置文件。

建议定期运行mysqltuner优化工具。


工具自带的说明:
  1. # mysqltuner.pl - Version 1.2.0
  2. # High Performance MySQL Tuning Script
  3. # Copyright (C) 2006-2011 Major Hayden - major@mhtx.net
  4. #
  5. # For the latest updates, please visit http://mysqltuner.com/
  6. # Git repository available at http://github.com/rackerhacker/MySQLTuner-perl
  7. #
  8. # This program is free software: you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation, either version 3 of the License, or
  11. # (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  20. #
  21. # This project would not be possible without help from:
  22. #   Matthew Montgomery     Paul Kehrer          Dave Burgess
  23. #   Jonathan Hinds         Mike Jackson         Nils Breunese
  24. #   Shawn Ashlee           Luuk Vosslamber      Ville Skytta
  25. #   Trent Hornibrook       Jason Gill           Mark Imbriaco
  26. #   Greg Eden              Aubin Galinotti      Giovanni Bechis
  27. #   Bill Bradford          Ryan Novosielski     Michael Scheidell
  28. #   Blair Christensen      Hans du Plooy        Victor Trac
  29. #   Everett Barnes         Tom Krouper          Gary Barrueto
  30. #   Simon Greenaway        Adam Stein           Isart Montane
  31. #   Baptiste M.
  32. #
  33. # Inspired by Matthew Montgomery's tuning-primer.sh script:
  34. # http://forge.mysql.com/projects/view.php?id=44
复制代码
kingtiy 该用户已被删除
发表于 2013-5-16 17:26:52 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2013-7-9 20:01:26 | 显示全部楼层
这东西可是不错
发表于 2015-2-7 14:33:00 | 显示全部楼层

嗯,不错,对于新手很有帮助
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|申请友链|小黑屋|Archiver|手机版|MySQL社区 ( 京ICP备07012489号   
联系人:周生; 联系电话:13911732319

GMT+8, 2024-3-19 18:39 , Processed in 0.071606 second(s), 28 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表