Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@localhost:~# ./mysqltuner.pl
- >> MySQLTuner 1.7.15 - Major Hayden <[email protected]>
- >> 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
- [OK] Logged in using credentials from Debian maintenance account.
- [OK] Currently running supported MySQL version 5.7.25-0ubuntu0.18.04.2-log
- [OK] Operating on 64-bit architecture
- -------- Log file Recommendations ------------------------------------------------------------------
- [--] Log file: /var/log/mysql/error.log(476B)
- [OK] Log file /var/log/mysql/error.log exists
- [OK] Log file /var/log/mysql/error.log is readable.
- [OK] Log file /var/log/mysql/error.log is not empty
- [OK] Log file /var/log/mysql/error.log is smaller than 32 Mb
- [OK] /var/log/mysql/error.log doesn't contain any warning.
- [OK] /var/log/mysql/error.log doesn't contain any error.
- [--] 0 start(s) detected in /var/log/mysql/error.log
- [--] 0 shutdown(s) detected in /var/log/mysql/error.log
- -------- Storage Engine Statistics -----------------------------------------------------------------
- [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
- [--] Data in InnoDB tables: 2.0G (Tables: 69)
- [OK] Total fragmented tables: 0
- -------- Analysis Performance Metrics --------------------------------------------------------------
- [--] innodb_stats_on_metadata: OFF
- [OK] No stat updates during querying INFORMATION_SCHEMA.
- -------- Security Recommendations ------------------------------------------------------------------
- [OK] There are no anonymous accounts for any database users
- [!!] failed to execute: SELECT CONCAT(user, '@', host) FROM mysql.user WHERE (IF(plugin='mysql_native_password', authentication_string, password) = '' OR IF(plugin='mysql_native_password', authentication_string, password) IS NULL) AND plugin NOT IN ('unix_socket', 'win_socket', 'auth_pam_compat')
- [!!] FAIL Execute SQL / return code: 256
- [OK] All database users have passwords assigned
- [--] Bug #80860 MySQL 5.7: Avoid testing password when validate_password is activated
- -------- CVE Security Recommendations --------------------------------------------------------------
- [--] Skipped due to --cvefile option undefined
- -------- Performance Metrics -----------------------------------------------------------------------
- [--] Up for: 1d 5h 58m 40s (457K q [4.243 qps], 28K conn, TX: 2G, RX: 53M)
- [--] Reads / Writes: 98% / 2%
- [--] Binary logging is disabled
- [--] Physical Memory : 15.7G
- [--] Max MySQL memory : 8.6G
- [--] Other process memory: 0B
- [--] Total buffers: 8.3G global + 1.0M per thread (256 max threads)
- [--] P_S Max memory usage: 72B
- [--] Galera GCache Max memory usage: 0B
- [OK] Maximum reached memory usage: 8.3G (53.17% of installed RAM)
- [OK] Maximum possible memory usage: 8.6G (54.73% of installed RAM)
- [OK] Overall possible memory usage with other process is compatible with memory available
- [OK] Slow queries: 0% (42/457K)
- [OK] Highest usage of available connections: 2% (6/256)
- [OK] Aborted connections: 0.01% (3/28889)
- [!!] Query cache may be disabled by default due to mutex contention.
- [!!] Query cache efficiency: 0.0% (0 cached / 310K selects)
- [OK] Query cache prunes per day: 0
- [!!] Sorts requiring temporary tables: 19% (15K temp sorts / 80K sorts)
- [OK] No joins without indexes
- [!!] Temporary tables created on disk: 54% (30K on disk / 56K total)
- [OK] Thread cache hit rate: 99% (6 created / 28K connections)
- [OK] Table cache hit rate: 70% (1K open / 1K opened)
- [OK] Open file limit used: 1% (68/5K)
- [OK] Table locks acquired immediately: 100% (511 immediate / 511 locks)
- -------- Performance schema ------------------------------------------------------------------------
- [--] Memory used by P_S: 72B
- [--] Sys schema is installed.
- -------- ThreadPool Metrics ------------------------------------------------------------------------
- [--] ThreadPool stat is disabled.
- -------- MyISAM Metrics ----------------------------------------------------------------------------
- [!!] Key buffer used: 18.4% (1M used / 8M cache)
- [OK] Key buffer size / total MyISAM indexes: 8.0M/43.0K
- [OK] Read Key buffer hit rate: 97.3% (366 cached / 10 reads)
- [OK] Write Key buffer hit rate: 100.0% (5 cached / 5 writes)
- -------- InnoDB Metrics ----------------------------------------------------------------------------
- [--] InnoDB is enabled.
- [--] InnoDB Thread Concurrency: 0
- [OK] InnoDB File per table is activated
- [OK] InnoDB buffer pool / data size: 8.0G/2.0G
- [OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 1.0G * 2/8.0G should be equal to 25%
- [!!] InnoDB buffer pool instances: 4
- [--] Number of InnoDB Buffer Pool Chunk : 64 for 4 Buffer Pool Instance(s)
- [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
- [OK] InnoDB Read buffer efficiency: 99.99% (521895373 hits/ 521966251 total)
- [!!] InnoDB Write Log efficiency: 86.39% (39770 hits/ 46036 total)
- [OK] InnoDB log waits: 0.00% (0 waits / 6266 writes)
- -------- AriaDB Metrics ----------------------------------------------------------------------------
- [--] AriaDB is disabled.
- -------- TokuDB Metrics ----------------------------------------------------------------------------
- [--] TokuDB is disabled.
- -------- XtraDB Metrics ----------------------------------------------------------------------------
- [--] XtraDB is disabled.
- -------- Galera Metrics ----------------------------------------------------------------------------
- [--] Galera is disabled.
- -------- Replication Metrics -----------------------------------------------------------------------
- [--] Galera Synchronous replication: NO
- [--] No replication slave(s) for this server.
- [--] Binlog format: ROW
- [--] XA support enabled: ON
- [--] Semi synchronous replication Master: Not Activated
- [--] Semi synchronous replication Slave: Not Activated
- [--] This is a standalone server
- -------- Recommendations ---------------------------------------------------------------------------
- General recommendations:
- Temporary table size is already large - reduce result set size
- Reduce your SELECT DISTINCT queries without LIMIT clauses
- Variables to adjust:
- query_cache_size (=0)
- query_cache_type (=0)
- query_cache_limit (> 1M, or use smaller result sets)
- sort_buffer_size (> 256K)
- read_rnd_buffer_size (> 256K)
- innodb_buffer_pool_instances(=8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement