
نوشته اصلی توسط
007
س
wget
http://mysqltuner.pl/ -O mysqltuner.pl
perl mysqltuner.pl
تموم شد بعدش از پیشنهاداتی داده استفاده کنین و فایل تنظیمات دیتابیس رو ویرایش کنین
ارادت
سلام مهندس
فقط همین 2 دستور را وارد کنم ؟!
- - - Updated - - -
ممنون از شما بزرگوار
دستورات را دادم به سرور
نتیجه :
کد PHP:
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM
[--] Data in MyISAM tables: 5G (Tables: 1100)
[--] Data in InnoDB tables: 3G (Tables: 1709)
[--] Data in MEMORY tables: 0B (Tables: 10)
[!!] Total fragmented tables: 256
-------- Security Recommendations -------------------------------------------
[OK] There are no anonymous accounts for any database users
[OK] All database users have passwords assigned
[!!] There is no basic password file list!
-------- CVE Security Recommendations ----------------------------------------- --
[--] Skipped due to --cvefile option undefined
-------- Performance Metrics -------------------------------------------------
[--] Up for: 23h 55m 26s (33M q [385.947 qps], 448K conn, TX: 537B, RX: 5B)
[--] Reads / Writes: 92% / 8%
[--] Binary logging is disabled
[--] Total buffers: 912.0M global + 2.8M per thread (1000 max threads)
[OK] Maximum reached memory usage: 1.2G (5.06% of installed RAM)
[OK] Maximum possible memory usage: 3.6G (15.27% of installed RAM)
[OK] Slow queries: 0% (2K/33M)
[OK] Highest usage of available connections: 11% (110/1000)
[OK] Aborted connections: 0.00% (18/448503)
[OK] Query cache efficiency: 76.5% (23M cached / 30M selects)
[!!] Query cache prunes per day: 1522129
[OK] Sorts requiring temporary tables: 0% (18K temp sorts / 2M sorts)
[!!] Joins performed without indexes: 1976
[!!] Temporary tables created on disk: 59% (620K on disk / 1M total)
[OK] Thread cache hit rate: 99% (110 created / 448K connections)
[!!] Table cache hit rate: 0% (100 open / 386K opened)
[OK] Open file limit used: 0% (99/10K)
[OK] Table locks acquired immediately: 99% (8M immediate / 8M locks)
-------- MyISAM Metrics -----------------------------------------------------
[!!] Key buffer used: 28.1% (75M used / 268M cache)
[OK] Key buffer size / total MyISAM indexes: 256.0M/743.3M
[OK] Read Key buffer hit rate: 99.9% (20B cached / 13M reads)
[OK] Write Key buffer hit rate: 99.6% (387M cached / 1M writes)
-------- InnoDB Metrics -----------------------------------------------------
[--] InnoDB is enabled.
[!!] InnoDB buffer pool / data size: 128.0M/3.2G
[OK] InnoDB buffer pool instances: 1
[OK] InnoDB Used buffer: 100.00% (8191 used/ 8191 total)
[OK] InnoDB Read buffer efficiency: 96.95% (1057351888 hits/ 1090619505 total)
[!!] InnoDB Write buffer efficiency: 0.00% (0 hits/ 1 total)
[OK] InnoDB log waits: 0.00% (0 waits / 220039 writes)
-------- AriaDB Metrics -----------------------------------------------------
[--] AriaDB is disabled.
-------- Replication Metrics -------------------------------------------------
[--] No replication slave(s) for this server.
[--] This is a standalone server..
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
Enable the slow query log to troubleshoot bad queries
Increasing the query_cache size over 128M may reduce performance
Adjust your join queries to always utilize indexes
Temporary table size is already large - reduce result set size
Reduce your SELECT DISTINCT queries without LIMIT clauses
Increase table_open_cache gradually to avoid file descriptor limits
Read this before increasing table_open_cache over 64: http://bit.ly/1mi7c4C
Beware that open_files_limit (10000) variable
should be greater than table_open_cache ( 100)
Variables to adjust:
query_cache_size (> 256M) [see warning above]
join_buffer_size (> 128.0K, or always use indexes with joins)
table_open_cache (> 100)
innodb_buffer_pool_size (>= 3G) if possible.