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. [OJ] Data Stream Median (Hard)

    LintCode 81. Data Stream Median (Hard) 思路: 用一个大根堆保存较小的一半数, 一个小根堆保存较大的一半数. 每次根据num和两个堆顶的数据决定往哪个堆里面放. ...

  2. jstring 和char 之间的转换方法

    //jstring to char* char* jstringTostring(JNIEnv* env, jstring jstr) { char* rtn = NULL; jclass clsst ...

  3. Android开发之bindService()侦听service内部状态

    在Android开发之bindService()通信的基础上,实现bindService()方法侦听service内部状态. 实现侦听service内部状态,使用的是回调机制 1.首先实现一个接口 p ...

  4. Linux kernel ‘lbs_debugfs_write’函数数字错误漏洞

    漏洞名称: Linux kernel ‘lbs_debugfs_write’函数数字错误漏洞 CNNVD编号: CNNVD-201311-421 发布时间: 2013-11-29 更新时间: 2013 ...

  5. Linux Kernel ‘oz_cdev_write()’函数本地缓冲区溢出漏洞

    漏洞名称: Linux Kernel ‘oz_cdev_write()’函数本地缓冲区溢出漏洞 CNNVD编号: CNNVD-201311-060 发布时间: 2013-11-07 更新时间: 201 ...

  6. 转 脸书pop动画的五个步骤

    http://blog.csdn.net/u013741809/article/details/38511741 5 Steps For Using Facebook Pop   // 1. Pick ...

  7. 在 ASP.NET MVC 中创建自定义 HtmlHelper

    在ASP.NET MVC应用程序的开发中,我们常碰到类似Html.Label或Html.TextBox这样的代码,它将在网页上产生一个label或input标记.这些HtmlHelper的扩展方法有些 ...

  8. 使用Bugfree不应有的坏习惯

    Bugfree是一款优秀的bug管理和追踪工具,因此受到不少公司的青睐.但实际的工作中,我发现不少开发或是测试的同事有一些不好的使用习惯,使得我们对Bugfree的利用不够高效.我下面列出使用Bugf ...

  9. 016专家视图测试脚本开发- Environment对象的使用;Msgbox和Print的区别

    (1)读取Built-in 'file -> settings -> Enrionment -> variable type 为 Built-in os = Environment. ...

  10. java基础全套

    这是我自己早前听课时整理的java基础全套知识  使用于初学者 也可以适用于中级的程序员 我做成了chm文档的类型  你们可以下载  笔记是比较系统全面,可以抵得上市场上90%的学习资料.讨厌那些随便 ...