摘要: myisam:mysql> explain select * from cc; + + + + + + + + + + + | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | 阅读全文
posted @ 2016-06-23 18:46 zengkefu 阅读(224) 评论(0) 推荐(0)
摘要: mysql默认时区:mysql> show variables like '%time_zone%'; + + + | Variable_name | Value | + + + | system_time_zone | PDT | | time_zone | SYSTEM | + + + 2 ro 阅读全文
posted @ 2016-06-23 16:57 zengkefu 阅读(4176) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/michaelrun/article/details/4616798 http://blog.csdn.net/yasaken/article/details/8742452 http://blog.csdn.net/songbohr/article/det 阅读全文
posted @ 2016-06-23 16:16 zengkefu 阅读(2316) 评论(0) 推荐(0)
摘要: In version MySQL 5.7.7 Oracle presented a new promising feature: optimizer hints. However it did not publish any documentation about the hints. The on 阅读全文
posted @ 2016-06-23 11:47 zengkefu 阅读(398) 评论(0) 推荐(0)
摘要: http://dev.mysql.com/doc/internals/en/tracing-example.html http://blog.chinaunix.net/uid-20785090-id-5597524.html 主要分为三个部分 join_preparation:SQL的准备阶段,s 阅读全文
posted @ 2016-06-23 11:14 zengkefu 阅读(672) 评论(0) 推荐(0)
摘要: http://www.innomysql.com/article/25241.html 1 key_len的含义 2 MySQL中key_len计算规则 3 通过key_len分析联合索引 本文首先介绍了MySQL的查询计划中ken_len的含义;然后介绍了key_len的计算方法;最后通过一个伪造 阅读全文
posted @ 2016-06-23 10:36 zengkefu 阅读(844) 评论(0) 推荐(1)
摘要: mysql -h 127.0.0.1 -P 3306 -u root -p -D test --batch --skip-column-name --execute="select * from tab_important" D:数据库 batch:输出结果无线框 skip-column-name: 阅读全文
posted @ 2016-06-23 07:31 zengkefu 阅读(1193) 评论(0) 推荐(0)