MySQL question
Is there a single query that will remove *all* references to a given string in every table?
I have a database backup from a vBulletin forum from 2001, and it won't access any page, because (even though I'm not logged in anywhere), it keeps trying to access session 687ece0471538100384690d06a2bffc6, which doesn't exist. I'd like to remove every row containing the string '687ece0471538100384690d06a2bffc6' from every table--the whole row, not just the field that it's located in. Just to be safe. After all, it takes less than a minute to restore the whole db from backup. As long as the board keeps trying to authenticate with the invalid session ID, I cannot log in or view any threads--all I can see is the forumdisplay page >< |
ok, well if its just in 1 table just do at the mysql prompt, or through php/cgi
Code:
delete from <table name> where <row name>=<whatever you want to delete> Code:
delete from <table name> where <row name>='<whatever you want to delete>' |
But the problem is, I don't know what field it is in.
|
All times are GMT -5. The time now is 10:38 AM. |