MariaDB 需要很长时间才能执行
我在MariaDB-10.3.1"中有一个包含 500 行数据的表
I have a table with 500 rows of data in "MariaDB-10.3.1"
当我运行TURNUCATE, ALTER, DROP, RENAME"时操作需要很长时间才能执行,但什么也没发生,我等待 30 分钟等待 500 行数据但未完成执行.
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?
推荐答案
我用
SELECT concat('KILL ', ID, ';') FROM INFORMATION_SCHEMA.PROCESSLIST WHERE `db` IN (DATABASE_NAMES);
然后杀死所有进程然后我的查询就起作用了.
and kill all process then my query worked.
谢谢大家.
相关文章