Skip to content

mysql优化脚本!

转载本站文章请注明:
转载来至:[记录与PHP的PK经历]
本文链接: mysql优化脚本!


[mysqld]
#port = 3306
#socket = /tmp/mysql.sock
#socket = /var/lib/mysql/mysql.sock
#skip-locking
key_buffer = 128M
max_allowed_packet = 1M
table_cache = 256
sort_buffer_size = 1M
net_buffer_length = 16K
myisam_sort_buffer_size = 1M
max_connections=120
#addnew config
wait_timeout =120
back_log=100
read_buffer_size = 1M
thread_cache=32
#skip-innodb
#skip-bdb
#skip-name-resolve
join_buffer_size=512k
query_cache_size = 64M
interactive_timeout=120
long_query_time=10
log_slow_queries= /usr/local/mysql/slow_query.log
query_cache_type= 1
# Try number of CPU’s*2 for thread_concurrency
thread_concurrency = 4

mysql优化(3)mysql 优化(10)php mysql 优化(1)MYSQL 记录 SLOW_QUERY(1)mysql slow_query(1)mysql 优化工具(1)研究mysql优化(1)

中文关键字:mysql 优化 脚本 buffer size cache query skip thread concurrency timeout socket 120 log 1m

One Comment

  1. 完全的看不懂.

    Posted on 16-Aug-08 at 2:01 pm | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*
Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).