نقل قول نوشته اصلی توسط 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 tables5G (Tables1100)
[--] 
Data in InnoDB tables3G (Tables1709)
[--] 
Data in MEMORY tables0B (Tables10)
[!!] 
Total fragmented tables256

-------- Security Recommendations  -------------------------------------------
[
OKThere are no anonymous accounts for any database users
[OKAll 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 connTX537BRX5B)
[--] 
Reads Writes92% / 8%
[--] 
Binary logging is disabled
[--] Total buffers912.0M global + 2.8M per thread (1000 max threads)
[
OKMaximum reached memory usage1.2G (5.06of installed RAM)
[
OKMaximum possible memory usage3.6G (15.27of installed RAM)
[
OKSlow queries0% (2K/33M)
[
OKHighest usage of available connections11% (110/1000)
[
OKAborted connections0.00%  (18/448503)
[
OKQuery cache efficiency76.5% (23M cached 30M selects)
[!!] 
Query cache prunes per day1522129
[OKSorts requiring temporary tables0% (18K temp sorts 2M sorts)
[!!] 
Joins performed without indexes1976
[!!] Temporary tables created on disk59% (620K on disk 1M total)
[
OKThread cache hit rate99% (110 created 448K connections)
[!!] 
Table cache hit rate0% (100 open 386K opened)
[
OKOpen file limit used0% (99/10K)
[
OKTable locks acquired immediately99% (8M immediate 8M locks)

-------- 
MyISAM Metrics -----------------------------------------------------
[!!] 
Key buffer used28.1% (75M used 268M cache)
[
OKKey buffer size total MyISAM indexes256.0M/743.3M
[OKRead Key buffer hit rate99.9% (20B cached 13M reads)
[
OKWrite Key buffer hit rate99.6% (387M cached 1M writes)

-------- 
InnoDB Metrics -----------------------------------------------------
[--] 
InnoDB is enabled.
[!!] 
InnoDB buffer pool data size128.0M/3.2G
[OKInnoDB buffer pool instances1
[OKInnoDB Used buffer100.00% (8191 used8191 total)
[
OKInnoDB Read buffer efficiency96.95% (1057351888 hits1090619505 total)
[!!] 
InnoDB Write buffer efficiency0.00% (0 hits1 total)
[
OKInnoDB log waits0.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 (10000variable
    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