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?
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?
Dumping the SQL file was probably the quickest and fastest for me. Also discovered another problem anyways..
I used Union to string together queries. Don't know if it's the most efficient way, but it works.
i got this to work. you just need to change the variables
This is the simplest query to retrive all Columns and Tables
All the tables or those with specific string in name could be searched via Search tab in phpMyAdmin.
Have Nice Query... \^.^/
Using MySQL Workbench it's easy to select several tables and run a search for text in all those tables of the DB ;-)
I built on a previous answer and have this, some extra padding just to be able to conveniently join all the output:
First you run this, then paste in and run the result (no editing) and it will display all the table names and columns where the value is used.