Re: [nyphp-talk] Searching an Entire MySQL Database

2010-11-05 Thread Andrew Yochum
On 11/5/10 9:57 AM, Wellington Fan wrote: I think the "-t" flag to mysqldump dumps just the data, and not the schema. this might be useful in ensuring that you don't accidentally change the schema with your sed. Right, but the point of testing against the schema file is so that you ensure you'

Re: [nyphp-talk] Searching an Entire MySQL Database

2010-11-05 Thread Wellington Fan
I think the "-t" flag to mysqldump dumps just the data, and not the schema. this might be useful in ensuring that you don't accidentally change the schema with your sed. -- wellington ___ New York PHP Users Group Community Talk Mailing List http://lis

Re: [nyphp-talk] Searching an Entire MySQL Database

2010-11-04 Thread Matt Juszczak
You could also do a mysqldump, find and replace with sed, then import. --Original Message-- From: Dan Cech Sender: talk-boun...@lists.nyphp.org To: talk@lists.nyphp.org ReplyTo: NYPHP Talk Subject: Re: [nyphp-talk] Searching an Entire MySQL Database Sent: Nov 4, 2010 09:29 On 11/4/2010

Re: [nyphp-talk] Searching an Entire MySQL Database

2010-11-04 Thread Michele Waldman
And, make a backup. Michele From: Andrew Yochum Sent: Thursday, November 04, 2010 11:00 AM To: NYPHP Talk Cc: NYPHP Talk Subject: Re: [nyphp-talk] Searching an Entire MySQL Database On Nov 4, 2010, at 9:41 AM, Rob Marscher wrote: On 11/4/2010 08:32, p...@blu-studio.com wrote

Re: [nyphp-talk] Searching an Entire MySQL Database

2010-11-04 Thread Andrew Yochum
On Nov 4, 2010, at 9:41 AM, Rob Marscher wrote: >> On 11/4/2010 08:32, p...@blu-studio.com wrote: >> > I am wondering if anyone has had to search an entire database and do a >> > search and replace on a string. That is to search in every table, in >> > every row, in every field. >> export the en

Re: [nyphp-talk] Searching an Entire MySQL Database

2010-11-04 Thread Rob Marscher
> On 11/4/2010 08:32, p...@blu-studio.com wrote: > > I am wondering if anyone has had to search an entire database and do a > > search and replace on a string. That is to search in every table, in > > every row, in every field. > export the entire database into a file > use PHP (or a good editor) t

Re: [nyphp-talk] Searching an Entire MySQL Database

2010-11-04 Thread Dan Cech
On 11/4/2010 8:32 AM, p...@blu-studio.com wrote: I am wondering if anyone has had to search an entire database and do a search and replace on a string. That is to search in every table, in every row, in every field. The simplest way will be to loop through the tables in php (use SHOW TABLES),

Re: [nyphp-talk] Searching an Entire MySQL Database

2010-11-04 Thread ps
i will look at this type of solution. thanks. peter Original Message Subject: Re: [nyphp-talk] Searching an Entire MySQL Database From: Michael Southwell <michael.southw...@nyphp.com> Date: Thu, November 04, 2010 6:11 am To: NYPHP Talk <talk@lists.nyphp.org> On 11/

Re: [nyphp-talk] Searching an Entire MySQL Database

2010-11-04 Thread Christopher R. Merlo
On Thursday, November 4, 2010, Michael Southwell wrote: > On 11/4/2010 08:32, p...@blu-studio.com wrote: > > I am wondering if anyone has had to search an entire database and do a > search and replace on a string. That is to search in every table, in > every row, in every field. > > > export the e

Re: [nyphp-talk] Searching an Entire MySQL Database

2010-11-04 Thread Michael Southwell
On 11/4/2010 08:32, p...@blu-studio.com wrote: I am wondering if anyone has had to search an entire database and do a search and replace on a string. That is to search in every table, in every row, in every field. export the entire database into a file use PHP (or a good editor) to make the rep

Re: [nyphp-talk] Searching an Entire MySQL Database

2010-11-04 Thread Christopher R. Merlo
On Thursday, November 4, 2010, wrote: > I am wondering if anyone has had to search an entire database and do a search > and replace on a string. That is to search in every table, in every row, in > every field. I'm having a hard time imagining a practical application of this, or even how it co

[nyphp-talk] Searching an Entire MySQL Database

2010-11-04 Thread ps
I am wondering if anyone has had to search an entire database and do a search and replace on a string. That is to search in every table, in every row, in every field.I am open to here about any or most effective method: Is there a unique MySQL query techniqueA SQL query that can do this? A SQL quer