http://www.chriscalender.com/troubleshooting-waiting-for-table-metadata-lock-errors-for-both-myisam-and-innodb-tables/
http://www.chriscalender.com/tag/waiting-for-table-metadata-lock/


#show (full)  processlist;
會有出現"Waiting for table metadata lock"的Process
 找出停留最久的把他kill
#kill  [porcess id];

建議把
wait_timeout 和 interactive_timeout秒數調低一點
ex: 60秒

#show ENGINE INNODB STATUS;

文章標籤
全站熱搜
創作者介紹
創作者 slinbody 的頭像
slinbody

495884965

slinbody 發表在 痞客邦 留言(0) 人氣(27)