2015年(4)
发布时间:2015-06-02 17:40:29
# Time: 150528 10:05:06# User@Host: ufutx[ufutx] @ localhost []# Query_time: 1.117478 Lock_time: 0.000777 Rows_sent: 200 Rows_examined: 7264use ufutx;SET timestamp=1432778706;select group_concat(uid) as route, count(uid) as cardnum, `fuid` as `target`, 'friend' as source from `ufutx.........【阅读全文】
发布时间:2015-05-28 14:20:43
设置在my.cnf中添加下面的slow_query_log=1 #表示开启慢查询日志long_query_time=1 #表示将大于1秒的查询标记为慢查询日志默认在 /var/lib/mysql目录中会重生 servername-slow.log检查mysql> show variables like '%slow%';+---------------------------+-----------------------------+| Variable.........【阅读全文】