22

Is there any command that I can locate a certain table from all databases? Since I forgot where the table is. Thanks.

OMG Ponies
  • 314,254
  • 77
  • 507
  • 490
Stan
  • 35,251
  • 46
  • 120
  • 177

1 Answers1

40

Use the MySQL specific:

SHOW TABLES

...or use the ANSI standard, INFORMATION_SCHEMA.TABLES:

SELECT table_name,
       table_schema AS dbname
  FROM INFORMATION_SCHEMA.TABLES
  WHERE table_name='searched table name'
Juan Antonio Tubío
  • 1,072
  • 14
  • 26
OMG Ponies
  • 314,254
  • 77
  • 507
  • 490