[ASK] Mysql sering time out


Status
Not open for further replies.

antmediahost

Apprentice 1.0
Verified Provider
Barangkali konfig my.cnf ini bisa membantu Tuan

[mysqld]
local-infile=0
max_connections = 200
max_user_connections = 50
wait_timeout = 60
delay-key-write

long_query_time = 20
log_slow_queries
log-slow-admin-statements

table_cache = 2400
thread_cache_size = 384
thread_concurrency=4

tmp_table_size = 64M
max_heap_table_size = 64M

query_cache_limit = 16M
query_cache_size = 64M
query_cache_type = 1

query_prealloc_size = 65536
query_alloc_block_size = 131072

thread_cache_size = 64

read_rnd_buffer_size = 524288
key_buffer_size = 12M
key_buffer = 64M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 1M

max_allowed_packet = 64M
connect_timeout = 30

open_files_limit=50000
[mysqld_safe]

[mysqldump]
quick
max_allowed_packet = 64M

[myisamchk]
key_buffer = 16M
sort_buffer = 64M
read_buffer = 64M
write_buffer = 64M

Nilainya silahkan disesuaikan dengan kebutuhan, atau coba copas dulu ke my.cnf Tuan terus restart sql dan coba import ulang
 

antmediahost

Apprentice 1.0
Verified Provider
Barangkali konfig my.cnf ini bisa membantu Tuan

[mysqld]
local-infile=0
max_connections = 200
max_user_connections = 50
wait_timeout = 60
delay-key-write

long_query_time = 20
log_slow_queries
log-slow-admin-statements

table_cache = 2400
thread_cache_size = 384
thread_concurrency=4

tmp_table_size = 64M
max_heap_table_size = 64M

query_cache_limit = 16M
query_cache_size = 64M
query_cache_type = 1

query_prealloc_size = 65536
query_alloc_block_size = 131072

thread_cache_size = 64

read_rnd_buffer_size = 524288
key_buffer_size = 12M
key_buffer = 64M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 1M

max_allowed_packet = 64M
connect_timeout = 30

open_files_limit=50000
[mysqld_safe]

[mysqldump]
quick
max_allowed_packet = 64M

[myisamchk]
key_buffer = 16M
sort_buffer = 64M
read_buffer = 64M
write_buffer = 64M

Nilainya silahkan disesuaikan dengan kebutuhan, atau coba copas dulu ke my.cnf Tuan terus restart sql dan coba import ulang
 

Nina Prasetyo

Expert 2.0
Hmm,.... mungkin ada client (mysql client) yang koneksi ke MySQL Servernya secara persisten.... mungkin bisa dicoba di cek juga tuh.
 
Status
Not open for further replies.

Top