http://mysqltuner.com/

MySQLTuner-perl

MySQLTuner is a script written in Perl that will assist you with your MySQL configuration and make recommendations for increased performance and stability.

View the Project on GitHubmajor/MySQLTuner-perl

MySQLTuner-perl

MySQLTuner is a script written in Perl that allows you to review a MySQL installation quickly and make adjustments to increase performance and stability. The current configuration variables and status data is retrieved and presented in a brief format along with some basic performance suggestions.

[root@server-mysql ~]# perl mysqltuner.pl --host 127.0.0.1 --user root --password "" --port
>> MySQLTuner 1.6. - Major Hayden <major@mhtx.net>
>> Bug reports, feature requests, and downloads at http://mysqltuner.com/
>> Run with '--help' for additional options and output filtering [--] Skipped version check for MySQLTuner script
[--] Performing tests on 127.0.0.1:
[OK] Logged in using credentials passed on the command line
[OK] Currently running supported MySQL version 5.6.
[OK] Operating on -bit architecture -------- Storage Engine Statistics -----------------------------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
[--] Data in InnoDB tables: 2G (Tables: )
[OK] Total fragmented tables: -------- Security Recommendations ------------------------------------------------------------------
[!!] User '@localhost' is an anonymous account.
[!!] User '@server-mysql' is an anonymous account.
[!!] User '@localhost' has no password set.
[!!] User '@server-mysql' has no password set.
[!!] User 'root@%' has no password set.
[!!] User 'root@127.0.0.1' has no password set.
[!!] User 'root@::1' has no password set.
[!!] User 'root@localhost' has no password set.
[!!] User 'root@server-mysql' has no password set.
[!!] User '@localhost' has user name as password.
[!!] User '@server-mysql' has user name as password.
[!!] User 'root@%' hasn't specific host restriction.
[!!] There is no basic password file list! -------- CVE Security Recommendations --------------------------------------------------------------
[--] Skipped due to --cvefile option undefined -------- Performance Metrics -----------------------------------------------------------------------
[--] Up for: 3h 24m 11s (1K q [0.160 qps], conn, TX: 3M, RX: 91K)
[--] Reads / Writes: % / %
[--] Binary logging is disabled
[--] Physical Memory : .3G
[--] Max MySQL memory : 646.7M
[--] Other process memory: 154.7M
[--] Total buffers: 73.0M global + 1.1M per thread ( max threads)
[--] P_S Max memory usage: 403M
[--] Galera GCache Max memory usage: 0B
[OK] Maximum reached memory usage: 480.2M (36.03% of installed RAM)
[OK] Maximum possible memory usage: 646.7M (48.52% of installed RAM)
[OK] Overall possible memory usage with other process is compatible with memory available
[OK] Slow queries: % (/1K)
[OK] Highest usage of available connections: % (/)
[OK] Aborted connections: 0.00% (/)
[OK] Query cache is disabled by default due to mutex contention on multiprocessor machines.
[OK] Sorts requiring temporary tables: % ( temp sorts / sorts)
[OK] No joins without indexes
[OK] Temporary tables created on disk: % ( on disk / 6K total)
[OK] Table cache hit rate: % ( open / opened)
[OK] Open file limit used: % (/5K)
[OK] Table locks acquired immediately: % ( immediate / locks) -------- Performance schema ------------------------------------------------------------------------
[--] Performance schema is enabled.
[--] Memory used by P_S: 403.8M
[--] Sys schema is installed. -------- ThreadPool Metrics ------------------------------------------------------------------------
[--] ThreadPool stat is disabled. -------- MyISAM Metrics ----------------------------------------------------------------------------
[!!] Key buffer used: 18.3% (1M used / 8M cache)
[OK] Key buffer size / total MyISAM indexes: 8.0M/.0K
[OK] Read Key buffer hit rate: 99.5% ( cached / reads) -------- AriaDB Metrics ----------------------------------------------------------------------------
[--] AriaDB is disabled. -------- InnoDB Metrics ----------------------------------------------------------------------------
[--] InnoDB is enabled.
[!!] InnoDB buffer pool / data size: 32.0M/.8G
[!!] InnoDB buffer pool <= 1G and innodb_buffer_pool_instances(!=).
[!!] InnoDB Used buffer: 22.77% ( used/ total)
[OK] InnoDB Read buffer efficiency: 94.41% ( hits/ total)
[!!] InnoDB Write Log efficiency: 16.67% ( hits/ total)
[OK] InnoDB log waits: 0.00% ( waits / writes) -------- TokuDB Metrics ----------------------------------------------------------------------------
[--] TokuDB is disabled. -------- Galera Metrics ----------------------------------------------------------------------------
[--] Galera is disabled. -------- Replication Metrics -----------------------------------------------------------------------
[--] Galera Synchronous replication: NO
[--] No replication slave(s) for this server.
[--] This is a standalone server. -------- Recommendations ---------------------------------------------------------------------------
General recommendations:
Remove Anonymous User accounts - there are anonymous accounts.
Set up a Password for user with the following SQL statement ( SET PASSWORD FOR 'user'@'SpecificDNSorIp' = PASSWORD('secure_password'); )
Set up a Secure Password for user@host ( SET PASSWORD FOR 'user'@'SpecificDNSorIp' = PASSWORD('secure_password'); )
Restrict Host for user@% to user@SpecificDNSorIp
MySQL started within last hours - recommendations may be inaccurate
Variables to adjust:
innodb_buffer_pool_size (>= 2G) if possible.
innodb_buffer_pool_instances (=)
[root@server-mysql ~]#

mysqltuner的更多相关文章

  1. 借助 MySQLTuner 优化 MySQL 性能(转载的一篇文章)

    MySQLTuner 是一个 Perl 脚本,可以用来分析您的 MySQL 性能,并且基于收集到的信息给出相应的优化建议.这样子,您就可以调整 my.cnf 从而优化您的 MySQL 设置. 这边只是 ...

  2. MySQL性能建议者mysqltuner.pl和pt-variable-advisor

    [root@etch171 ~]# mysqltuner.pl --host >> MySQLTuner - Major Hayden <major@mhtx.net> > ...

  3. 使用 mysqltuner 检测 mysql 稳定性

    github : https://github.com/major/MySQLTuner-perl MySQLTuner是一个用Perl编写的脚本,它可以帮助您进行MySQL配置,并提出增强性能和稳定 ...

  4. 利用mysqltuner工具对mysql数据库进行优化

    mysqltuner工具使用,本工具建议定期运行,发现目前MYSQL数据库存在的问题及修改相关的参数 工具的下载及部署 解决环境依赖,因为工具是perl脚本开发的,需要perl脚本环境 # yun i ...

  5. mysql性能优化工具mysqltuner使用

    1.下载:wget --no-check-certificate https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysq ...

  6. mysqltuner对数据库的优化

    主要用于对mysql配置及my.cnf配置检查,提供详细信息,为进一步优化mysql做参考. 下载地址: (1)http://mysqltuner.com/ (2)脚本获取# wget -c http ...

  7. 记一次troubleshooting(一):奇慢的脚本

    背景: 事情发生的时间是几年前,那时刚从windows server运维的部门调动过来,对linux和数据库还是处于一知半解的状态. 领导找过来说:前任遗留下来的问题你来调查一下,有个客户说他们的日次 ...

  8. 15 个有用的 MySQL/MariaDB 性能调整和优化技巧(转载的一篇好文)

    MySQL 是一个强大的开源关系数据库管理系统(简称 RDBMS).它发布于 1995 年(20年前).它采用结构化查询语言(SQL),这可能是数据库内容管理中最流行的选择.最新的 MySQL 版本是 ...

  9. Redmine性能优化方案

    近来公司redmine服务器表现很糟糕,在16核,64GRAM的机器上,压测结果竟然只有每秒5~7个请求,部分页面一个都出不来. 以下是我对Redmine性能优化方案: redmine服务器性能问题排 ...

随机推荐

  1. NRE

    NRE是Non-Recurring Engineering的缩写,NRE费用即一次性工程费用,是指集成电路生产成本中非经常性发生的开支,明确地说就是新的集成电路产品的研制开发费·新产品开发过程中的设计 ...

  2. Visual Assist X

    老师推荐的一款vc++6.0插件 visual assistx_百度百科 http://baike.baidu.com/view/4439152.htm?fr=aladdin 下载 VC++6.0助手 ...

  3. Cocos2d-x CCEditBox & CCTextFieldTTF

    下面简单记录一下如何Cocos2d-x中创建输入编辑框.在引擎中为我们提供了这样两个类:CCEditBox  和  CCTextFieldTTF. 一.CCEditBox ①这个类文件的位置 ②这个类 ...

  4. html5学习链接

    http://www.runoob.com/tags/html-colorpicker.html

  5. VS2010里属性窗口中的生成操作

    ,无,编译 ,内容 ,嵌入的资源...分别是什么意思? 如果是类.cs文件,就得编译之后你才能使用的.如果是txt,excle这种文件,就属性内容或者资源文件了. @普通用户: 内容(Content) ...

  6. Form - CHECKBOX全选功能

    FORM BUILDER开发,遇到这样一个需求: 添加一个CHECKBOX完成全选功能,红框为新添加的CHECKBOX(如图示) Try to use APP_RECORD.FOR_ALL_RECOR ...

  7. 场解决方案添加webpart(Create Webpart to page using code)

    转:http://www.soaspx.com/dotnet/asp.net/tech/tech_20120814_9489.html /// <summary>         /// ...

  8. c# process 输入输出

    using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; usin ...

  9. CentOS6.x安装配置nginx [转]

    博文来源:http://leyewen.blog.163.com/   nginx安装 nginx的官网:http://nginx.org/   相应下载页面:http://nginx.org/en/ ...

  10. QT无法定位入口点QtCore4.dll(万恶的matlab啊)

    今天安装QT, 参考: http://www.qtcn.org/bbs/simple/?t53333.html 遇到问题 发现怎么更matlab有关了.果断把系统环境变量改一下:放到了最前面 呵呵,行 ...