mysqltuner
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的更多相关文章
- 借助 MySQLTuner 优化 MySQL 性能(转载的一篇文章)
MySQLTuner 是一个 Perl 脚本,可以用来分析您的 MySQL 性能,并且基于收集到的信息给出相应的优化建议.这样子,您就可以调整 my.cnf 从而优化您的 MySQL 设置. 这边只是 ...
- MySQL性能建议者mysqltuner.pl和pt-variable-advisor
[root@etch171 ~]# mysqltuner.pl --host >> MySQLTuner - Major Hayden <major@mhtx.net> > ...
- 使用 mysqltuner 检测 mysql 稳定性
github : https://github.com/major/MySQLTuner-perl MySQLTuner是一个用Perl编写的脚本,它可以帮助您进行MySQL配置,并提出增强性能和稳定 ...
- 利用mysqltuner工具对mysql数据库进行优化
mysqltuner工具使用,本工具建议定期运行,发现目前MYSQL数据库存在的问题及修改相关的参数 工具的下载及部署 解决环境依赖,因为工具是perl脚本开发的,需要perl脚本环境 # yun i ...
- mysql性能优化工具mysqltuner使用
1.下载:wget --no-check-certificate https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysq ...
- mysqltuner对数据库的优化
主要用于对mysql配置及my.cnf配置检查,提供详细信息,为进一步优化mysql做参考. 下载地址: (1)http://mysqltuner.com/ (2)脚本获取# wget -c http ...
- 记一次troubleshooting(一):奇慢的脚本
背景: 事情发生的时间是几年前,那时刚从windows server运维的部门调动过来,对linux和数据库还是处于一知半解的状态. 领导找过来说:前任遗留下来的问题你来调查一下,有个客户说他们的日次 ...
- 15 个有用的 MySQL/MariaDB 性能调整和优化技巧(转载的一篇好文)
MySQL 是一个强大的开源关系数据库管理系统(简称 RDBMS).它发布于 1995 年(20年前).它采用结构化查询语言(SQL),这可能是数据库内容管理中最流行的选择.最新的 MySQL 版本是 ...
- Redmine性能优化方案
近来公司redmine服务器表现很糟糕,在16核,64GRAM的机器上,压测结果竟然只有每秒5~7个请求,部分页面一个都出不来. 以下是我对Redmine性能优化方案: redmine服务器性能问题排 ...
随机推荐
- J2EE的十三种技术(规范)
J2EE的十三种技术(规范) Java数据库连接(JDBC) JDBC API以一个统一的方式访问各种数据库.与ODBC类似,JDBC将开发者和私有数据库之间的问题隔离开来.由于它建立在Java上, ...
- Linux复制指定目录下的文件夹结构
[root@ebs12vis ~]# su - applmgr[applmgr@ebs12vis ~]$ cd $APPL_TOP/inv[applmgr@ebs12vis inv]$ find . ...
- write & read a sequence file(基于全新2.2.0API)
write & read a sequence file write & read a sequence file import java.io.IOException; import ...
- BZOJ_1014_[JSOI2008]_火星人prefix_(Splay+LCP_Hash+二分)
描述 http://www.lydsy.com/JudgeOnline/problem.php?id=1014 给出一个字符串,有修改,插入,以及询问LCP(i,j)的操作. 分析 LCP在白书上面有 ...
- [swustoj 594] Maximum Tape Utilization Ratio
Maximum Tape Utilization Ratio(0594) Time limit(ms): 1000 Memory limit(kb): 65535 Submission: 467 Ac ...
- 【转】【iOS知识学习】_视图控制对象生命周期-init、viewDidLoad、viewWillAppear、viewDidAppear、viewWillDisappear等的区别及用途
原文网址:http://blog.csdn.net/weasleyqi/article/details/8090373 iOS视图控制对象生命周期-init.viewDidLoad.viewWillA ...
- win7系统自带截图工具快捷键是什么?怎么设置快捷键
win7自带的截图工具很好,很强大,比从网上下载的截图工具好用多了,很少会出现问题.但是它能不能像QQ截图工具一样可以使用快捷键呢?今天小编和大家分享下心得,希望能够给你的工作带来快捷. 工具/原料 ...
- RESTLET开发实例(三)基于spring的REST服务
http://www.lifeba.org/arch/restlet_spring_3.html 前面两篇文章,我们介绍了基于JAX-RS的REST服务以及Application的Rest服务.这里将 ...
- lightoj 1002
最短路的变形,使用spfa做. #include<set> #include<map> #include<list> #include<stack> # ...
- 自动计算label字体的高度和图片拉伸处理(封装成分类分享)
自动计算label字体的高度和图片拉伸处理 *:first-child { margin-top: 0 !important; } body > *:last-child { margin-bo ...