本帖最后由 wxl6878 于 2009-12-7 19:06 编辑
我用mysql的慢查询记录功能记录了以下内容:
- C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt, Version: 5.0.81-community-nt-log (MySQL Community Edition (GPL)). started with:
- TCP Port: 3306, Named Pipe: (null)
- Time Id Command Argument
- # Time: 091207 11:56:14
- # User@Host: [wxl] @ [127.0.0.1]
- # Query_time: 3 Lock_time: 0 Rows_sent: 10 Rows_examined: 24301
- use sqllovelovel;
- SELECT p.pid, p.tid, p.subject, p.message
- FROM cdb_posts p
- WHERE p.invisible='0' AND p.bbcodeoff<>'1' AND p.message LIKE '%[img%[/img]%' AND p.first='1'
- ORDER BY p.dateline DESC
- LIMIT 0, 10;
- # Time: 091207 13:03:44
- # User@Host: [wxl] @ [127.0.0.1]
- # Query_time: 5 Lock_time: 0 Rows_sent: 10 Rows_examined: 24372
- SELECT p.pid, p.tid, p.subject, p.message
- FROM cdb_posts p
- WHERE p.invisible='0' AND p.bbcodeoff<>'1' AND p.message LIKE '%[img%[/img]%' AND p.first='1'
- ORDER BY p.dateline DESC
- LIMIT 0, 10;
- # Time: 091207 14:05:13
- # User@Host: [wxl] @ [127.0.0.1]
- # Query_time: 5 Lock_time: 0 Rows_sent: 10 Rows_examined: 24416
- SELECT p.pid, p.tid, p.subject, p.message
- FROM cdb_posts p
- WHERE p.invisible='0' AND p.bbcodeoff<>'1' AND p.message LIKE '%[img%[/img]%' AND p.first='1'
- ORDER BY p.dateline DESC
- LIMIT 0, 10;
- # Time: 091207 16:22:43
- # User@Host: [wxl] @ [127.0.0.1]
- # Query_time: 3 Lock_time: 0 Rows_sent: 10 Rows_examined: 24436
- SELECT p.pid, p.tid, p.subject, p.message
- FROM cdb_posts p
- WHERE p.invisible='0' AND p.bbcodeoff<>'1' AND p.message LIKE '%[img%[/img]%' AND p.first='1'
- ORDER BY p.dateline DESC
- LIMIT 0, 10;
- # Time: 091207 18:28:03
- # User@Host: [wxl] @ [127.0.0.1]
- # Query_time: 4 Lock_time: 0 Rows_sent: 10 Rows_examined: 24444
- SELECT p.pid, p.tid, p.subject, p.message
- FROM cdb_posts p
- WHERE p.invisible='0' AND p.bbcodeoff<>'1' AND p.message LIKE '%[img%[/img]%' AND p.first='1'
- ORDER BY p.dateline DESC
- LIMIT 0, 10;
- # Time: 091207 18:44:07
- # User@Host: [wxl] @ [127.0.0.1]
- # Query_time: 5 Lock_time: 0 Rows_sent: 117 Rows_examined: 117
- SHOW TABLE STATUS LIKE 'cdb_%';
复制代码
谁能给我下解决方法? |