View: 2250|Reply: 4
|
[HELP] MySQL Config (my.cnf)
[Copy link]
|
|
ni yg my.cnf aku gune skang ni
- [mysqld]
- port = ****
- socket = /var/lib/mysql/mysql.sock
- skip-locking
- key_buffer = 16K
- max_allowed_packet = 1M
- table_cache = 4
- sort_buffer_size = 64K
- read_buffer_size = 256K
- read_rnd_buffer_size = 256K
- net_buffer_length = 2K
- thread_stack = 64K
- skip-bdb
- skip-innodb
- [mysqldump]
- quick
- max_allowed_packet = 16M
- [mysql]
- no-auto-rehash
- #safe-updates
- [isamchk]
- key_buffer = 8M
- sort_buffer_size = 8M
- [myisamchk]
- key_buffer = 8M
- sort_buffer_size = 8M
- [mysqlhotcopy]
- interactive-timeout
Copy the Code
RAM vps aku maximum - 320 MB
aku run 2 blog wordpress setiap satu lebih kurang 10k page view sehari.
jadi ok ke config yg mcm ni? pasal RAM aku selalunye akan habis. pelik bin ajaib
ni pulak process list
mintak tolong le kengkawan eh.
mod-mod sekalian, aku pacak thread nii kat sini dulu, pasal bod programming tu kurang manusia la kat situ
[ Last edited by skycrew at 14-4-2008 01:03 PM ] |
|
|
|
|
|
|
|
[isamchk]
key_buffer = 8M
sort_buffer_size = 8M
tukar jadi 2Mb .. dua dua.. try la |
|
|
|
|
|
|
|
Originally posted by skycrew at 15-4-2008 06:57 PM
ni yg my.cnf aku gune skang ni
[mysqld]
port = ****
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buf ...
cuba disable plugin plugin wordpress yang tak penting especially statistic since 10k page view perday. Perghhhh 10k , jeles aku |
|
|
|
|
|
|
|
Reply #4 anti_aktivis's post
disable pun sudah gak, last choice, aku terpaksa separate database
aku host 2blog jadi 2database. load cpu ngan memory melampau. jadi satu database tu aku terpaksa host tempat lain, baru la load kurang
adeh @@ |
|
|
|
|
|
|
| |
|