2014年2月18日

open_table与opened_table

摘要: 好多人在调优Mysql的时候,总是对open_tables和opend_tables两个参数分别不清。网上好多解释都是这样的:open_tables:当前打开表的数量opened_tables:当前已经打开表的数量很简单的解释,可是这两句话看起来有点类似。下面我来解释一下:open_tables:是当前在缓存中打开表的数量。opened_tables:是mysql自启动起,打开表的数量。我们知道,假如没有缓存的话,那么mysql服务在每次执行一个语句的时候,都会先打开一个表。当sql语句执行完成后,则把这个表关掉。这就是opend_tables中的值。而open_tables这个值,是mysq 阅读全文

posted @ 2014-02-18 22:20 Still water run deep 阅读(923) 评论(0) 推荐(0)

SHOW OPEN TABLES – what is in your table cache

摘要: One command, which few people realize exists isSHOW OPEN TABLES– it allows you to examine what tables do you have open right now:1 mysql> show open tables from test;2 +----------+-------+--------+-------------+3 | Database | Table | In_use | Name_locked |4 +----------+-------+--------+----------- 阅读全文

posted @ 2014-02-18 20:52 Still water run deep 阅读(394) 评论(0) 推荐(0)

导航