当前位置:网站首页>MySQL error warning: a long semaphore wait

MySQL error warning: a long semaphore wait

2022-07-06 12:35:00 wx5caecf2ed0645


Run before mysql When you're good , A series of warning:


       
InnoDB: Warning: a long semaphore wait
  • 1.


Then there is an error :


       
  • 1.
       
Error: semaphore wait has lasted > 600 seconds
  • 1.

Then the service shuts down automatically , According to online information, it is because of the problem of hash adaptive index ,mysql Hash adaptive indexing is enabled by default , After indexing in this way , The efficiency of reading and writing can be improved 2 More than times , But there may be a deadlock problem , Online suggestion off

       
innodb_adaptive_hash_index
  • 1.

The specific process :

       
mysql -u root -t;
  • 1.
       
set global innodb_adaptive_hash_index=off;
  • 1.
       
View the modification results
SHOW GLOBAL VARIABLES LIKE 'innodb_ada%';
  • 1.
  • 2.

You can see innodb_adaptive_hash_index It's closed , complete .


Reference material :

 ​https://bugs.mysql.com/bug.php?id=50641​

 ​http://stackoverflow.com/questions/24860111/warning-a-long-semaphore-wait​


原网站

版权声明
本文为[wx5caecf2ed0645]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131527440839.html