Advertisement
Guest User

Untitled

a guest
May 24th, 2020
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.24 KB | None | 0 0
  1. >> MySQLTuner 1.7.19 - Major Hayden <[email protected]>
  2. >> Bug reports, feature requests, and downloads at http://mysqltuner.com/
  3. >> Run with '--help' for additional options and output filtering
  4. [--] Skipped version check for MySQLTuner script
  5. [OK] Logged in using credentials from Debian maintenance account.
  6. [OK] Currently running supported MySQL version 5.7.28-0ubuntu0.16.04.2-log
  7. [OK] Operating on 64-bit architecture
  8.  
  9. -------- Log file Recommendations ------------------------------------------------------------------
  10. [OK] Log file /var/lib/mysql/mysql_error.log exists
  11. [--] Log file: /var/lib/mysql/mysql_error.log(847K)
  12. [OK] Log file /var/lib/mysql/mysql_error.log is readable.
  13. [OK] Log file /var/lib/mysql/mysql_error.log is not empty
  14. [OK] Log file /var/lib/mysql/mysql_error.log is smaller than 32 Mb
  15. [!!] /var/lib/mysql/mysql_error.log contains 394 warning(s).
  16. [!!] /var/lib/mysql/mysql_error.log contains 414 error(s).
  17. [--] 51 start(s) detected in /var/lib/mysql/mysql_error.log
  18. [--] 1) 2020-05-24T16:10:23.708766Z 0 [Note] /usr/sbin/mysqld: ready for connections.
  19. [--] 2) 2020-05-24T08:54:38.458093Z 0 [Note] /usr/sbin/mysqld: ready for connections.
  20. [--] 3) 2020-05-24T08:41:29.772932Z 0 [Note] /usr/sbin/mysqld: ready for connections.
  21. [--] 4) 2020-05-23T22:38:05.721563Z 0 [Note] /usr/sbin/mysqld: ready for connections.
  22. [--] 5) 2020-05-23T22:26:21.762981Z 0 [Note] /usr/sbin/mysqld: ready for connections.
  23. [--] 6) 2020-05-23T21:25:41.615811Z 0 [Note] /usr/sbin/mysqld: ready for connections.
  24. [--] 7) 2020-05-23T21:08:05.863216Z 0 [Note] /usr/sbin/mysqld: ready for connections.
  25. [--] 8) 2020-05-23T21:02:01.394316Z 0 [Note] /usr/sbin/mysqld: ready for connections.
  26. [--] 9) 2020-05-23T20:44:49.467994Z 0 [Note] /usr/sbin/mysqld: ready for connections.
  27. [--] 10) 2020-05-23T18:26:04.532414Z 0 [Note] /usr/sbin/mysqld: ready for connections.
  28. [--] 78 shutdown(s) detected in /var/lib/mysql/mysql_error.log
  29. [--] 1) 2020-05-24T16:10:17.626644Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
  30. [--] 2) 2020-05-24T08:54:36.847674Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
  31. [--] 3) 2020-05-24T08:41:28.108544Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
  32. [--] 4) 2020-05-23T22:38:04.126905Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
  33. [--] 5) 2020-05-23T22:26:20.145052Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
  34. [--] 6) 2020-05-23T21:25:39.897644Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
  35. [--] 7) 2020-05-23T21:08:04.208145Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
  36. [--] 8) 2020-05-23T21:01:59.765009Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
  37. [--] 9) 2020-05-23T20:44:47.759965Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
  38. [--] 10) 2020-05-23T18:26:03.260311Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
  39.  
  40. -------- Storage Engine Statistics -----------------------------------------------------------------
  41. [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
  42. [--] Data in InnoDB tables: 662.3M (Tables: 51)
  43. [OK] Total fragmented tables: 0
  44.  
  45. -------- Analysis Performance Metrics --------------------------------------------------------------
  46. [--] innodb_stats_on_metadata: OFF
  47. [OK] No stat updates during querying INFORMATION_SCHEMA.
  48.  
  49. -------- Security Recommendations ------------------------------------------------------------------
  50. [OK] There are no anonymous accounts for any database users
  51. [OK] All database users have passwords assigned
  52. [!!] User 'John@%' does not specify hostname restrictions.
  53. [!!] User 'pavel_martinez@%' does not specify hostname restrictions.
  54. [--] There are 605 basic passwords in the list.
  55. [!!] User 'John@%' is using weak password: qwerty in a lower, upper or capitalize derivative version.
  56. [!!] User 'john@localhost' is using weak password: qwerty in a lower, upper or capitalize derivative version.
  57.  
  58. -------- CVE Security Recommendations --------------------------------------------------------------
  59. [--] Skipped due to --cvefile option undefined
  60.  
  61. -------- Performance Metrics -----------------------------------------------------------------------
  62. [--] Up for: 13m 13s (31K q [40.121 qps], 571 conn, TX: 20M, RX: 6M)
  63. [--] Reads / Writes: 52% / 48%
  64. [--] Binary logging is disabled
  65. [--] Physical Memory : 7.8G
  66. [--] Max MySQL memory : 274.8G
  67. [--] Other process memory: 0B
  68. [--] Total buffers: 12.9G global + 536.5M per thread (500 max threads)
  69. [--] P_S Max memory usage: 0B
  70. [--] Galera GCache Max memory usage: 0B
  71. [!!] Maximum reached memory usage: 20.2G (259.13% of installed RAM)
  72. [!!] Maximum possible memory usage: 274.8G (3525.27% of installed RAM)
  73. [!!] Overall possible memory usage with other process exceeded memory
  74. [OK] Slow queries: 0% (4/31K)
  75. [OK] Highest usage of available connections: 2% (14/500)
  76. [OK] Aborted connections: 0.18% (1/571)
  77. [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
  78. [OK] Query cache is disabled by default due to mutex contention on multiprocessor machines.
  79. [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 1K sorts)
  80. [OK] No joins without indexes
  81. [!!] Temporary tables created on disk: 49% (348 on disk / 704 total)
  82. [OK] Thread cache hit rate: 97% (14 created / 571 connections)
  83. [OK] Table cache hit rate: 97% (339 open / 346 opened)
  84. [OK] table_definition_cache(4096) is upper than number of tables(330)
  85. [OK] Open file limit used: 0% (15/10K)
  86. [OK] Table locks acquired immediately: 100% (102 immediate / 102 locks)
  87.  
  88. -------- Performance schema ------------------------------------------------------------------------
  89. [--] Performance schema is disabled.
  90. [--] Memory used by P_S: 0B
  91. [--] Sys schema is installed.
  92.  
  93. -------- ThreadPool Metrics ------------------------------------------------------------------------
  94. [--] ThreadPool stat is disabled.
  95.  
  96. -------- MyISAM Metrics ----------------------------------------------------------------------------
  97. [!!] Key buffer used: 18.2% (390M used / 2B cache)
  98. [OK] Key buffer size / total MyISAM indexes: 2.0G/43.0K
  99. [!!] Read Key buffer hit rate: 50.0% (6 cached / 3 reads)
  100.  
  101. -------- InnoDB Metrics ----------------------------------------------------------------------------
  102. [--] InnoDB is enabled.
  103. [--] InnoDB Thread Concurrency: 8
  104. [OK] InnoDB File per table is activated
  105. [OK] InnoDB buffer pool / data size: 5.0G/662.3M
  106. [OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 640.0M * 2/5.0G should be equal to 25%
  107. [OK] InnoDB buffer pool instances: 5
  108. [--] Number of InnoDB Buffer Pool Chunk : 40 for 5 Buffer Pool Instance(s)
  109. [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
  110. [OK] InnoDB Read buffer efficiency: 99.84% (2125420 hits/ 2128766 total)
  111. [OK] InnoDB Write log efficiency: 94.30% (13117 hits/ 13910 total)
  112. [OK] InnoDB log waits: 0.00% (0 waits / 793 writes)
  113.  
  114. -------- AriaDB Metrics ----------------------------------------------------------------------------
  115. [--] AriaDB is disabled.
  116.  
  117. -------- TokuDB Metrics ----------------------------------------------------------------------------
  118. [--] TokuDB is disabled.
  119.  
  120. -------- XtraDB Metrics ----------------------------------------------------------------------------
  121. [--] XtraDB is disabled.
  122.  
  123. -------- Galera Metrics ----------------------------------------------------------------------------
  124. [--] Galera is disabled.
  125.  
  126. -------- Replication Metrics -----------------------------------------------------------------------
  127. [--] Galera Synchronous replication: NO
  128. [--] No replication slave(s) for this server.
  129. [--] Binlog format: ROW
  130. [--] XA support enabled: ON
  131. [--] Semi synchronous replication Master: Not Activated
  132. [--] Semi synchronous replication Slave: Not Activated
  133. [--] This is a standalone server
  134.  
  135. -------- Recommendations ---------------------------------------------------------------------------
  136. General recommendations:
  137. Control warning line(s) into /var/lib/mysql/mysql_error.log file
  138. Control error line(s) into /var/lib/mysql/mysql_error.log file
  139. Restrict Host for 'John'@% to John@SpecificDNSorIp
  140. UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='John' AND host ='%'; FLUSH PRIVILEGES;
  141. Restrict Host for 'pavel_martinez'@% to pavel_martinez@SpecificDNSorIp
  142. UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='pavel_martinez' AND host ='%'; FLUSH PRIVILEGES;
  143. Set up a Secure Password for John@% user: SET PASSWORD FOR 'John'@'%' = PASSWORD('secure_password');
  144. Set up a Secure Password for john@localhost user: SET PASSWORD FOR 'john'@'localhost' = PASSWORD('secure_password');
  145. 2 user(s) used basic or weak password from basic dictionary.
  146. MySQL was started within the last 24 hours - recommendations may be inaccurate
  147. Reduce your overall MySQL memory footprint for system stability
  148. Dedicate this server to your database for highest performance.
  149. Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
  150. Temporary table size is already large - reduce result set size
  151. Reduce your SELECT DISTINCT queries without LIMIT clauses
  152. Performance schema should be activated for better diagnostics
  153. Variables to adjust:
  154. *** MySQL's maximum memory usage is dangerously high ***
  155. *** Add RAM before increasing MySQL buffer variables ***
  156. performance_schema = ON enable PFS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement