CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

View: 2250|Reply: 4

[HELP] MySQL Config (my.cnf)

[Copy link]
Post time 15-4-2008 06:57 PM | Show all posts |Read mode
ni yg my.cnf aku gune skang ni

  1. [mysqld]
  2. port            = ****
  3. socket          = /var/lib/mysql/mysql.sock
  4. skip-locking
  5. key_buffer = 16K
  6. max_allowed_packet = 1M
  7. table_cache = 4
  8. sort_buffer_size = 64K
  9. read_buffer_size = 256K
  10. read_rnd_buffer_size = 256K
  11. net_buffer_length = 2K
  12. thread_stack = 64K
  13. skip-bdb
  14. skip-innodb

  15. [mysqldump]
  16. quick
  17. max_allowed_packet = 16M

  18. [mysql]
  19. no-auto-rehash
  20. #safe-updates

  21. [isamchk]
  22. key_buffer = 8M
  23. sort_buffer_size = 8M

  24. [myisamchk]
  25. key_buffer = 8M
  26. sort_buffer_size = 8M

  27. [mysqlhotcopy]
  28. 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 ]
Reply

Use magic Report


ADVERTISEMENT


Post time 15-4-2008 08:36 PM | Show all posts
command ni

mysql> SHOW STATUS LIKE '%key_read%';

tgk apa hasik kuar..
Reply

Use magic Report

Post time 15-4-2008 08:40 PM | Show all posts
[isamchk]
key_buffer = 8M
sort_buffer_size = 8M

tukar jadi 2Mb .. dua dua.. try la
Reply

Use magic Report

Post time 19-4-2008 10:04 PM | Show all posts
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

Use magic Report

 Author| Post time 19-4-2008 11:38 PM | Show all posts

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 @@
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT



 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

22-1-2025 10:12 AM GMT+8 , Processed in 0.157631 second(s), 17 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list