Jump to content

Search entire database for string?


sw9

Recommended Posts

Queries are specific to the table(s) you have written in your query. To search all the tables, you would need to list all of them in the query, either in a UNION or a JOIN. There is no wild-card search across all the tables in a database. Why do you have similar/same information split into 255 different tables?

I don't have same data in my tables, the issue is that I need to find WHAT table contains a certain string of PHP code that is causing a problem on my site. I am running drupal, so the error is not coming back in a way that is helping me determine which page is causing the problem.

 

OK, so if I were to use REGEX for this and list out a bunch of tables that could be the culprit, can I get around having to include the specific column? Meaning, can I have it search specific tables in full rather than provide an exact column to try to match on?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.