上一页 1 ··· 14 15 16 17 18

2014年2月19日

innodb_force_recovery

摘要: WarningBefore using innodb_force_recovery ensure that you have a backup copy of your database in case you need to start over. You should always begin by setting innodb_force_recovery to a lower value. Incrementally increase the setting as required. Only use an innodb_force_recovery setting of 3 or g 阅读全文

posted @ 2014-02-19 22:09 Still water run deep 阅读(639) 评论(0) 推荐(0) 编辑

SELECT LOCK IN SHARE MODE and FOR UPDATE

摘要: Baronwrotenice article comparing locking hints in MySQL and SQL Server.In MySQL/Innodb LOCK IN SHARE MODE and SELECT FOR UPDATE are more than hints. Behavior will be different from normal SELECT statements. Here is simple example: 1 SESSION1: 2 mysql> begin; 3 Query OK, 0 rows affected (0.00 sec) 阅读全文

posted @ 2014-02-19 01:25 Still water run deep 阅读(393) 评论(0) 推荐(0) 编辑

To pack or not to pack – MyISAM Key compression

摘要: MyISAM storage engine has key compression which makes its indexes much smaller, allowing better fit in caches and so improving performance dramatically. Actually packed indexes not a bit longer rows is frequent reason of MyISAM performing better than Innodb. In this article I’ll get in a bit more de 阅读全文

posted @ 2014-02-19 00:04 Still water run deep 阅读(326) 评论(0) 推荐(0) 编辑

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 阅读(784) 评论(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 阅读(375) 评论(0) 推荐(0) 编辑

上一页 1 ··· 14 15 16 17 18

导航