23

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

OMG Ponies
  • 325,700
  • 82
  • 523
  • 502
Stan
  • 37,207
  • 50
  • 124
  • 185

1 Answers1

45

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,172
  • 14
  • 28
OMG Ponies
  • 325,700
  • 82
  • 523
  • 502