The VIEW_TABLE_USAGE table (available
as of MySQL 8.0.13) provides access to information about tables
and views used in view definitions.
You can see information only for views for which you have some privilege, and only for tables for which you have some privilege.
The VIEW_TABLE_USAGE table has these
columns:
VIEW_CATALOGThe name of the catalog to which the view belongs. This value is always
def.VIEW_SCHEMAThe name of the schema (database) to which the view belongs.
VIEW_NAMEThe name of the view.
TABLE_CATALOGThe name of the catalog to which the table or view used in the view definition belongs. This value is always
def.TABLE_SCHEMAThe name of the schema (database) to which the table or view used in the view definition belongs.
TABLE_NAMEThe name of the table or view used in the view definition.