ผู้เขียน หัวข้อ: my.cnf  (อ่าน 2433 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ phatipan2

  • Full Member
  • ***
  • กระทู้: 245
  • นก ครับ
  • Respect: 0
    • ดูรายละเอียด
    • www.thasaehospital.com
my.cnf
« เมื่อ: ธันวาคม 29, 2010, 10:17:51 AM »
0
#Begin /etc/my.cnf
[client]
port                = 3306
socket                = /var/lib/mysql/mysql.sock
default-character-set=tis620

[mysqld]
port                = 3306
socket                = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 512M
max_allowed_packet = 128M
table_cache = 1000
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
max_heap_table_size = 256M
join_buffer_size = 4M
myisam_sort_buffer_size = 512M
thread_cache = 400
query_cache_size= 256M
thread_concurrency = 8
default-character-set=tis620
skip-name-resolve
innodb_file_per_table
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
max_connections=500
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
#innodb_log_arch_dir = /var/lib/mysql/
innodb_buffer_pool_size = 4096M
innodb_additional_mem_pool_size = 24M
innodb_log_file_size = 128M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 2
innodb_lock_wait_timeout = 50
innodb_thread_concurrency = 0
innodb_flush_method = O_DIRECT
innodb_doublewrite = 0
innodb_support_xa = 0
innodb_open_files = 2000
innodb_locks_unsafe_for_binlog = 1
concurrent_insert = 2

[mysqldump]
quick
max_allowed_packet = 16M
allow-keywords

[mysql]
no-auto-rehash
default-character-set=tis620

[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 500M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout
#End /etc/my.cnf
 เรียน อ.ชัยพร
    ไม่ทราบว่า ควรแก้ไข ตรงไหน บ้าง ครับ เพิ่ง หัด ทำ ครับ
โรงพยาบาลท่าแซะ อ.ท่าแซะ จ.ชุมพร
ขี้นระบบ ตุลาคม 2549
Server DELL PowerEdge T410   RAM 8 Gb.
MySQL 5.1.30
OS CentOS 5.4 64bit
HOSxP Version : 3.54.1.5