I am trying to drop database in mysql with following command
DROP database db-name;
Its take a very long and I faced some issue with the same DB related to table lock and all so I thought to check is there any process active for same DB with the following command
SELECT * FROM information_schema.processlist WHERE DB = 'db-name';
its shows one process is there so I kill that process using Kill 66
and then again run the same command
SELECT * FROM information_schema.processlist WHERE DB = 'db-name';
so now its shows empty set so I tried again to drop the database using same command but again same result .
I am using MySQL 8.0 command line client to run all commands , even I use workbench its shows timeout MySQL connection error after few minutes trying to drop the database .
Just to add one more thing I am using root user with all permission , so no issue regarding permissions .
SHOW ENGINE INNODB STATUS
in separate CLI window and look what locks the metadata.