Fork me on GitHub

随笔分类 -  MySQL

摘要:上一篇文章简单介绍了下EXPLAIN的用法,今天主要介绍以下几点内容:慢查询日志打开慢查询日志保存慢查询日志到表中慢查询日志分析Percona Toolkit介绍安装pt-query-digestpt-index-usagept-query-advisorSHOW PROFILEperformanc 阅读全文
posted @ 2013-12-14 14:35 zhanjindong 阅读(13989) 评论(6) 推荐(4) 编辑
摘要:最近慢慢接触MySQL,了解如何优化它也迫在眉睫了,话说工欲善其事,必先利其器。最近我就打算了解下几个优化MySQL中经常用到的工具。今天就简单介绍下EXPLAIN。内容导航idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra环境准备MySQL版本:创建测试表CREATE TABLE people( id bigint auto_increment primary key, zipcode char(32) not null default '', address varchar(128) not null def. 阅读全文
posted @ 2013-11-23 22:24 zhanjindong 阅读(24893) 评论(7) 推荐(8) 编辑

TOP
点击右上角即可分享
微信分享提示