3 ms·
Can you tell us the size of your query cache and your key cache, if they are enabled? If not, we should talk about enabling them. :-)
by carbocation 17y ago
Can you tell us the size of your query cache and your key cache, if they are enabled? If not, we should talk about enabling them. :-)
- chrismoos 17y agoThey are rather low...I figured that would be good on a limited memory configuration (maybe not :( ). query_cache_limit = 1M query_cache_size = 16M key_buffer = 16M max_allowed_packet = 16M thread_stack = 192K thread_cache_size = 8
- carbocation 17y agoOK, at least they're enabled :-) I'm not a DBA, but have hit IO issues with my MYISAM/MYSQL database many times myself. 1) Have you run Mysqltuner? If not, wget http://mysqltuner.com/mysqltuner.pl http://mysqltuner.com/mysqltuner.pl chmod to executable and execute it. I find it rather helpful. 2) Are you indexing every field that is part of any WHERE statement (at least for the big tables)? 3) Have you run EXPLAIN on the original query? (Suggested by someone else in this thread, and a critical question.) 4) Is the slow_query_log enabled, and are you sure about which query is causing the slowdown? 5) Have you tried tools like MySQL Administrator, which lets you monitor connections, threads, keys, queries, etc, in realtime?