6
« เมื่อ: มีนาคม 02, 2011, 09:17:31 AM »
เครื่อง server fujitsu primergy TX150S7 ครับ ram 4 gig
My.cnf ครับ
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
port= 3306
socket= /var/lib/mysql/mysql.sock
default_storage_engine=INNODB
default_table_type = INNODB
default-character-set=tis620
skip-locking
skip-name-resolve
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
max_connections = 300
key_buffer = 512M
max_allowed_packet = 256M
table_cache = 2000
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
join_buffer_size=8M
max_heap_table_size = 512M
myisam_sort_buffer_size = 512M
thread_cache = 8
thread_concurrency = 8
query_cache_size= 1024M
concurrent_insert=2
innodb_file_per_table
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
#innodb_buffer_pool_size = 4096M
innodb_additional_mem_pool_size = 32M
#innodb_log_file_size = 512M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
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
[mysqldump]
quick
max_allowed_packet = 512M
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 = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
# Default to using old password format for
compatibility with mysql 3.x
# clients (those using the mysqlclient10
compatibility package).
old_passwords=1
# Disabling symbolic-links is recommended to
prevent assorted security risks;
# to do so, uncomment this line:
# symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
มีปัญหาตรงที่
#innodb_buffer_pool_size = 4096M
#innodb_log_file_size = 512M
ครับ ถ้าเอา # มันจะไม่สามารถ Run mysql ได้ครับ