Search text in fields in every table of a MySQL database

RSilva picture RSilva · Mar 12, 2009 · Viewed 457.3k times · Source

I want to search in all fields from all tables of a MySQL database a given string, possibly using syntax as:

SELECT * FROM * WHERE * LIKE '%stuff%'

Is it possible to do something like this?

Answer

Dean Rather picture Dean Rather · Jan 27, 2011

You could do an SQLDump of the database (and its data) then search that file.