问题
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