Mysql database query freeze timeout problem analysis

Problem Description

The mysql database is stuck, no data can be found, timeout, etc. can use this sql query problem.


Reason view:

select * from information_schema.processlist where COMMAND !=‘Sleep’ order by time desc;


solution:

Check the TIME timeout time, check the INFO abnormal sql, you can kill the stalled process, temporarily solve the current problem, and then analyze and optimize the stalled sql separately.

Guess you like

Origin blog.csdn.net/myyw001/article/details/128932807