SELECT lock_mode, lock_type, table_schema, table_name FROM information_schema.metadata_lock_info;
lock_mode	lock_type	table_schema	table_name
SELECT GET_LOCK('LOCK1',0);
GET_LOCK('LOCK1',0)
1
SELECT lock_mode, lock_type, table_schema, table_name FROM information_schema.metadata_lock_info;
lock_mode	lock_type	table_schema	table_name
MDL_SHARED_NO_WRITE	User lock	LOCK1	
SELECT RELEASE_LOCK('LOCK1');
RELEASE_LOCK('LOCK1')
1
SELECT lock_mode, lock_type, table_schema, table_name FROM information_schema.metadata_lock_info;
lock_mode	lock_type	table_schema	table_name
