Here about it:
select * from information_schema.tables
where table_schema not in ('information_schema', 'mysql', 'performance_schema')
information_schemacontains meta information about your database. You can list all tables using information_schema.tables. If you exclude two meta-schemes information_schemaand mysql, you will get all user tables
source
share