MariaDB take long time to execute

一曲冷凌霜 提交于 2021-01-29 10:52:14

问题


I have a table with 500 rows of data in "MariaDB-10.3.1"

When i run "TURNUCATE, ALTER, DROP, RENAME" operations take a long time for execution and nothing happend, i wait 30 minutes for 500 rows of data but not finished execution.

anyone can help me to solve the problem?


回答1:


I use

SELECT concat('KILL ', ID, ';') FROM INFORMATION_SCHEMA.PROCESSLIST WHERE `db` IN (DATABASE_NAMES);

and kill all process then my query worked.

Thank you all.



来源:https://stackoverflow.com/questions/64133377/mariadb-take-long-time-to-execute

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!