Answer the question
In order to leave comments, you need to log in
Why are locks appearing in MySQL?
I have some database on MySQL under a web project (normal LAMP).
The load is relatively large, but the server is quite productive (64 RAM, 8 cores, MVME).
At some point, on the advice of mysqltuner, I changed the following parameters:
query_cache_type =0
join_buffer_size = 16M
table_open_cache = 4000
innodb_buffer_pool_size = 16G
innodb_buffer_pool_instances = 16
SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction
Answer the question
In order to leave comments, you need to log in
The parameters are irrelevant. Look for an error in logic. Somewhere there are dead locks. You just don't see it.
There was a case:
https://stackoverflow.com/questions/6000336/how-to...
Doc.
dev.mysql.com/doc/refman/5.5/en/innodb-parameters....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question