information_schema.TABLES থেকে InnoDB টেবিল ফিল্টার
সিস্টেম ডেটাবেস বাদ দিয়ে শুধু InnoDB ইঞ্জিন ব্যবহারকারী টেবিলগুলো তালিকাভুক্ত করার কোয়েরি:
mysql> SELECT TABLE_SCHEMA AS DATABASENAME, TABLE_NAME AS AllTABLENAME, ENGINE AS ENGINETYPE
-> FROM information_schema.TABLES
-> WHERE ENGINE = 'InnoDB'
-> AND TABLE_SCHEMA NOT IN ('mysql','information_schema','performance_schema');
আউটপুট (আংশিক, মোট ১৯৪ সারি):
+--------------+------------------------------------------------------------------+------------+ | DATABASENAME | AllTABLENAME | ENGINETYPE | +--------------+------------------------------------------------------------------+------------+ | sys | sys_config | InnoDB | | business | mytable, primarytable, tblstudent, modifydatatype, nulldemo, ... | InnoDB | | sample | mytable, yourtable | InnoDB | | education | university, student | InnoDB | | test | destination, myisamtoinnodbdemo, originaltable | InnoDB | +--------------+------------------------------------------------------------------+------------+ 194 rows in set (0.01 sec)
ব্যবহার: মাইগ্রেশন, ব্যাকআপ, বা ইনডেক্স মেইনটেন্যান্সের সময় শুধু InnoDB টেবিলগুলো টার্গেট করার জন্য এই কোয়েরি উপযোগী।