使用 mysqltuner 檢測 mysql 穩定性

github : https://github.com/major/MySQLTuner-perl mysql

MySQLTuner是一個用Perl編寫的腳本,它能夠幫助您進行MySQL配置,並提出加強性能和穩定性的建議。git

installl:github

1,cd /usr/local/bin && curl -O https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.plsql

2,chmod +x ./mysqltuner.pl && ./mysqltuner.pl --version && alias mysqltuner='perl /usr/local/bin/mysqltuner.pl' ;json

3-安全

 

help:架構

 

Usage:

socket

Name:
MySQLTuner 1.7.15 - MySQL High Performance Tuning Scriptide

Important Usage Guidelines:
To run the script with the default options, run the script without
arguments Allow MySQL server to run for at least 24-48 hours before
trusting suggestions Some routines may require root level privileges
(script will provide warnings) You must provide the remote server's
total memory when connecting to other servers性能

Connection and Authentication: 鏈接和驗證
--host <hostname> Connect to a remote host to perform tests (default: localhost)
--socket <socket> Use a different socket for a local connection
--port <port> Port to use for connection (default: 3306)
--user <username> Username to use for authentication
--userenv <envvar> Name of env variable which contains username to use for authentication
--pass <password> Password to use for authentication
--passenv <envvar> Name of env variable which contains password to use for authentication
--ssl-ca <path> Path to public key
--mysqladmin <path> Path to a custom mysqladmin executable
--mysqlcmd <path> Path to a custom mysql executable
--defaults-file <path> Path to a custom .my.cnf

Performance and Reporting Options:   績效和報告選項
--skipsize Don't enumerate tables and their types/sizes (default: on)
(Recommended for servers with many tables)
--skippassword Don't perform checks on user passwords(default: off)
--checkversion Check for updates to MySQLTuner (default: don't check)
--updateversion Check for updates to MySQLTuner and update when newer version is available (default: don't check)
--forcemem <size> Amount of RAM installed in megabytes
--forceswap <size> Amount of swap memory configured in megabytes
--passwordfile <path> Path to a password file list(one password by line)

Output Options: 輸出選項
--silent Don't output anything on screen
--nogood Remove OK responses
--nobad Remove negative/suggestion responses
--noinfo Remove informational responses
--debug Print debug information
--noprocess Consider no other process is running
--dbstat Print database information
--nodbstat Don't Print database information
--tbstat Print table information
--notbstat Don't Print table information
--idxstat Print index information
--noidxstat Don't Print index information
--sysstat Print system information
--nosysstat Don't Print system information
--pfstat Print Performance schema
--nopfstat Don't Print Performance schema
--verbose Prints out all options (default: no verbose, dbstat, idxstat, sysstat, tbstat, pfstat)
--bannedports Ports banned separated by comma(,)
--maxportallowed Number of ports opened allowed on this hosts
--cvefile <path> CVE File for vulnerability checks
--nocolor Don't print output in color
--json Print result as JSON string
--buffers Print global and per-thread buffer values
--outputfile <path> Path to a output txt file
--reportfile <path> Path to a report txt file
--template <path> Path to a template file

 

 

  • Log file Recommendations 日誌文件建議 -----
  • Storage Engine Statistics 存儲引擎統計-----
  • Analysis Performance Metrics 分析性能指標 -----
  • Security Recommendations 安全建議-----
  • CVE Security Recommendations CVE安全建議-----
  • Performance schema 性能架構-----
  • ThreadPool Metrics 線程池度量標準-----
  • MyISAM Metrics-----
  • AriaDB Metrics -----
  • TokuDB Metrics-----
  • XtraDB Metrics -----
  • Galera Metrics -----
  • Replication Metrics 複製指標------
  • Recommendations 建議------

相關文章
相關標籤/搜索