Here is how we can see if we have MySQL locks due to indexing: Display locks: SELECT IS_USED_LOCK('db_name_here.reindex_full'); Releasing locks: SELECT RELEASE_LOCK('db_name_here.reindex_full'); Create a lock: SELECT GET_LOCK('db_name_here.reindex_full', 5);