Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 求配置my.cnf

[复制链接]
hs999 发表于 2009-9-28 09:37:19 | 显示全部楼层 |阅读模式
硬件:
1U:Intel(R) Xeon(TM) CPU 3.00GHz   
2G内存
硬盘:250G  SCSI


系统: centos 5.3  php5 MySQL5 Apache2 phpMyAdmin ZendOptimizer


现在的配置my.cnf:


  1. # The following options will be passed to all MySQL clients
  2. [client]
  3. #password        = your_password
  4. port                = 3306
  5. socket                = /tmp/mysql.sock

  6. # Here follows entries for some specific programs

  7. # The MySQL server
  8. [mysqld]
  9. port                = 3306
  10. socket                = /tmp/mysql.sock
  11. skip-locking
  12. max_connections = 1000

  13. key_buffer_size = 256M

  14. max_allowed_packet = 4M
  15. back_log = 384

  16. table_open_cache = 512

  17. sort_buffer_size = 4M

  18. read_buffer_size = 4M

  19. read_rnd_buffer_size = 8M

  20. myisam_sort_buffer_size = 64M

  21. thread_cache_size = 256

  22. query_cache_size = 32M

  23. thread_concurrency = 4

  24. interactive_timeout=10
  25. wait_timeout = 10



  26. # Replication Master Server (default)
  27. # binary logging is required for replication
  28. log-bin=mysql-bin

  29. # binary logging format - mixed recommended
  30. binlog_format=mixed

  31. # required unique id between 1 and 2^32 - 1
  32. # defaults to 1 if master-host is not set
  33. # but will not function as a master if omitted
  34. server-id        = 1

  35. [mysqldump]
  36. quick
  37. max_allowed_packet = 16M

  38. [mysql]
  39. no-auto-rehash
  40. # Remove the next comment character if you are not familiar with SQL
  41. #safe-updates

  42. [myisamchk]
  43. key_buffer_size = 256M
  44. sort_buffer_size = 256M
  45. read_buffer = 2M
  46. write_buffer = 2M

  47. [mysqlhotcopy]
  48. interactive_timeout

  49. [client]
  50. default-character-set = gbk
  51. [mysqld]
  52. default-character-set = gbk
复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-17 08:43 , Processed in 0.020831 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表