<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[运维进行时]]></title> 
<link>https://blog.liuts.com/index.php</link> 
<description><![CDATA[互联网运维与架构]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[运维进行时]]></copyright>
<item>
<link>https://blog.liuts.com/post//</link>
<title><![CDATA[解决：Mysql exceeds the lock table size]]></title> 
<author>root &lt;admin@yourname.com&gt;</author>
<category><![CDATA[MYSQL]]></category>
<pubDate>Thu, 22 May 2008 14:10:56 +0000</pubDate> 
<guid>https://blog.liuts.com/post//</guid> 
<description>
<![CDATA[ 
	<strong>故障现象</strong><br/><textarea name="code" class="sql" rows="15" cols="100">
mysql> delete FROM `tablesname` WHERE datetime<'2009-03-06';
ERROR 1206 (HY000): The total number of locks exceeds the lock table size
</textarea><br/><strong>解决步骤</strong><br/>1、锁表写操作<br/><textarea name="code" class="sql" rows="15" cols="100">
mysql> lock tables tablesname write;
mysql> delete FROM `tablesname` WHERE datetime<'2009-03-06';
ERROR 1206 (HY000): The total number of locks exceeds the lock table size
</textarea><br/>没有解决。<br/>2、 innodb修改改innodb_buffer_pool_size值(一般配置为总内存的30%-40% ) myisam修改key_buffer(若是myisam应该没这个问题,因为myisam不是行级锁)<br/>重启Mysql，解决。 <br/>Tags - <a href="https://blog.liuts.com/tags/lock/" rel="tag">lock</a> , <a href="https://blog.liuts.com/tags/table/" rel="tag">table</a>
]]>
</description>
</item><item>
<link>https://blog.liuts.com/post//#blogcomment</link>
<title><![CDATA[[评论] 解决：Mysql exceeds the lock table size]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://blog.liuts.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>