question about restoring...

question about restoring...

am 09.11.2010 19:34:00 von Andy Wallace

So, I got a request this morning to recover some specific records for
a client. I just want a handful of records from a couple of tables here.
I have a copy of the INNODB files for these two tables - is there a way
to extract the table contents from these files short of a full import?

thanks,
ansdy


--
Andy Wallace
iHOUSEweb, Inc.
awallace@ihouseweb.com
(866) 645-7700 ext 219
--
There are two ways to build software:
Make it so simple that there are obviously no bugs,
or make it so complex that there are no obvious bugs.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org

RE: question about restoring...

am 09.11.2010 19:50:03 von Gavin Towey

No, you should import the data into another instance of mysql to extract th=
e records.

Regards,
Gavin Towey


-----Original Message-----
From: Andy Wallace [mailto:awallace@ihouseweb.com]
Sent: Tuesday, November 09, 2010 10:34 AM
To: mysql list
Subject: question about restoring...

So, I got a request this morning to recover some specific records for
a client. I just want a handful of records from a couple of tables here.
I have a copy of the INNODB files for these two tables - is there a way
to extract the table contents from these files short of a full import?

thanks,
ansdy


--
Andy Wallace
iHOUSEweb, Inc.
awallace@ihouseweb.com
(866) 645-7700 ext 219
--
There are two ways to build software:
Make it so simple that there are obviously no bugs,
or make it so complex that there are no obvious bugs.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgtowey@ffn.com


This message contains confidential information and is intended only for the=
individual named. If you are not the named addressee, you are notified th=
at reviewing, disseminating, disclosing, copying or distributing this e-mai=
l is strictly prohibited. Please notify the sender immediately by e-mail i=
f you have received this e-mail by mistake and delete this e-mail from your=
system. E-mail transmission cannot be guaranteed to be secure or error-fre=
e as information could be intercepted, corrupted, lost, destroyed, arrive l=
ate or incomplete, or contain viruses. The sender therefore does not accept=
liability for any loss or damage caused by viruses or errors or omissions =
in the contents of this message, which arise as a result of e-mail transmis=
sion. [FriendFinder Networks, Inc., 220 Humboldt Court, Sunnyvale, CA 94089=
, USA, FriendFinder.com

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg

RE: question about restoring...

am 09.11.2010 20:04:40 von Jerry Schwartz

That's overkill.

You should be able to import the data into another database within the same
instance, unless the file is too big to handle.

Regards,

Jerry Schwartz
Global Information Incorporated
195 Farmington Ave.
Farmington, CT 06032

860.674.8796 / FAX: 860.674.8341
E-mail: jerry@gii.co.jp
Web site: www.the-infoshop.com

>-----Original Message-----
>From: Gavin Towey [mailto:gtowey@ffn.com]
>Sent: Tuesday, November 09, 2010 1:50 PM
>To: Andy Wallace; mysql list
>Subject: RE: question about restoring...
>
>No, you should import the data into another instance of mysql to extract the
>records.
>
>Regards,
>Gavin Towey
>
>
>-----Original Message-----
>From: Andy Wallace [mailto:awallace@ihouseweb.com]
>Sent: Tuesday, November 09, 2010 10:34 AM
>To: mysql list
>Subject: question about restoring...
>
>So, I got a request this morning to recover some specific records for
>a client. I just want a handful of records from a couple of tables here.
>I have a copy of the INNODB files for these two tables - is there a way
>to extract the table contents from these files short of a full import?
>
>thanks,
>ansdy
>
>
>--
>Andy Wallace
>iHOUSEweb, Inc.
>awallace@ihouseweb.com
>(866) 645-7700 ext 219
>--
>There are two ways to build software:
>Make it so simple that there are obviously no bugs,
>or make it so complex that there are no obvious bugs.
>
>--
>MySQL General Mailing List
>For list archives: http://lists.mysql.com/mysql
>To unsubscribe: http://lists.mysql.com/mysql?unsub=gtowey@ffn.com
>
>
>This message contains confidential information and is intended only for the
>individual named. If you are not the named addressee, you are notified that
>reviewing, disseminating, disclosing, copying or distributing this e-mail is
>strictly prohibited. Please notify the sender immediately by e-mail if you
>have received this e-mail by mistake and delete this e-mail from your system.
>E-mail transmission cannot be guaranteed to be secure or error-free as
>information could be intercepted, corrupted, lost, destroyed, arrive late or
>incomplete, or contain viruses. The sender therefore does not accept
>liability
>for any loss or damage caused by viruses or errors or omissions in the
>contents
>of this message, which arise as a result of e-mail transmission.
>[FriendFinder
>Networks, Inc., 220 Humboldt Court, Sunnyvale, CA 94089, USA,
>FriendFinder.com
>
>--
>MySQL General Mailing List
>For list archives: http://lists.mysql.com/mysql
>To unsubscribe: http://lists.mysql.com/mysql?unsub=jerry@gii.co.jp





--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org

RE: question about restoring...

am 09.11.2010 21:22:15 von Gavin Towey

Not if he has the raw innodb files.


-----Original Message-----
From: Jerry Schwartz [mailto:jerry@gii.co.jp]
Sent: Tuesday, November 09, 2010 11:05 AM
To: Gavin Towey; 'Andy Wallace'; 'mysql list'
Subject: RE: question about restoring...

That's overkill.

You should be able to import the data into another database within the same
instance, unless the file is too big to handle.

Regards,

Jerry Schwartz
Global Information Incorporated
195 Farmington Ave.
Farmington, CT 06032

860.674.8796 / FAX: 860.674.8341
E-mail: jerry@gii.co.jp
Web site: www.the-infoshop.com

>-----Original Message-----
>From: Gavin Towey [mailto:gtowey@ffn.com]
>Sent: Tuesday, November 09, 2010 1:50 PM
>To: Andy Wallace; mysql list
>Subject: RE: question about restoring...
>
>No, you should import the data into another instance of mysql to extract t=
he
>records.
>
>Regards,
>Gavin Towey
>
>
>-----Original Message-----
>From: Andy Wallace [mailto:awallace@ihouseweb.com]
>Sent: Tuesday, November 09, 2010 10:34 AM
>To: mysql list
>Subject: question about restoring...
>
>So, I got a request this morning to recover some specific records for
>a client. I just want a handful of records from a couple of tables here.
>I have a copy of the INNODB files for these two tables - is there a way
>to extract the table contents from these files short of a full import?
>
>thanks,
>ansdy
>
>
>--
>Andy Wallace
>iHOUSEweb, Inc.
>awallace@ihouseweb.com
>(866) 645-7700 ext 219
>--
>There are two ways to build software:
>Make it so simple that there are obviously no bugs,
>or make it so complex that there are no obvious bugs.
>
>--
>MySQL General Mailing List
>For list archives: http://lists.mysql.com/mysql
>To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgtowey@ffn.com
>
>
>This message contains confidential information and is intended only for th=
e
>individual named. If you are not the named addressee, you are notified th=
at
>reviewing, disseminating, disclosing, copying or distributing this e-mail =
is
>strictly prohibited. Please notify the sender immediately by e-mail if yo=
u
>have received this e-mail by mistake and delete this e-mail from your syst=
em.
>E-mail transmission cannot be guaranteed to be secure or error-free as
>information could be intercepted, corrupted, lost, destroyed, arrive late =
or
>incomplete, or contain viruses. The sender therefore does not accept
>liability
>for any loss or damage caused by viruses or errors or omissions in the
>contents
>of this message, which arise as a result of e-mail transmission.
>[FriendFinder
>Networks, Inc., 220 Humboldt Court, Sunnyvale, CA 94089, USA,
>FriendFinder.com
>
>--
>MySQL General Mailing List
>For list archives: http://lists.mysql.com/mysql
>To unsubscribe: http://lists.mysql.com/mysql?unsub=3Djerry@gii.co.jp





This message contains confidential information and is intended only for the=
individual named. If you are not the named addressee, you are notified th=
at reviewing, disseminating, disclosing, copying or distributing this e-mai=
l is strictly prohibited. Please notify the sender immediately by e-mail i=
f you have received this e-mail by mistake and delete this e-mail from your=
system. E-mail transmission cannot be guaranteed to be secure or error-fre=
e as information could be intercepted, corrupted, lost, destroyed, arrive l=
ate or incomplete, or contain viruses. The sender therefore does not accept=
liability for any loss or damage caused by viruses or errors or omissions =
in the contents of this message, which arise as a result of e-mail transmis=
sion. [FriendFinder Networks, Inc., 220 Humboldt Court, Sunnyvale, CA 94089=
, USA, FriendFinder.com

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg

RE: question about restoring...

am 09.11.2010 23:39:40 von Jerry Schwartz

Then I guess it's a matter of preference. I'd rather edit a text file than
build a new instance of MySQL.

On the other hand, if he has a development environment (as we all, of course,
do) then he could futz around in there.

Regards,

Jerry Schwartz
Global Information Incorporated
195 Farmington Ave.
Farmington, CT 06032

860.674.8796 / FAX: 860.674.8341
E-mail: jerry@gii.co.jp
Web site: www.the-infoshop.com

>-----Original Message-----
>From: Gavin Towey [mailto:gtowey@ffn.com]
>Sent: Tuesday, November 09, 2010 3:22 PM
>To: Jerry Schwartz; 'Andy Wallace'; 'mysql list'
>Subject: RE: question about restoring...
>
>Not if he has the raw innodb files.
>
>
>-----Original Message-----
>From: Jerry Schwartz [mailto:jerry@gii.co.jp]
>Sent: Tuesday, November 09, 2010 11:05 AM
>To: Gavin Towey; 'Andy Wallace'; 'mysql list'
>Subject: RE: question about restoring...
>
>That's overkill.
>
>You should be able to import the data into another database within the same
>instance, unless the file is too big to handle.
>
>Regards,
>
>Jerry Schwartz
>Global Information Incorporated
>195 Farmington Ave.
>Farmington, CT 06032
>
>860.674.8796 / FAX: 860.674.8341
>E-mail: jerry@gii.co.jp
>Web site: www.the-infoshop.com
>
>>-----Original Message-----
>>From: Gavin Towey [mailto:gtowey@ffn.com]
>>Sent: Tuesday, November 09, 2010 1:50 PM
>>To: Andy Wallace; mysql list
>>Subject: RE: question about restoring...
>>
>>No, you should import the data into another instance of mysql to extract the
>>records.
>>
>>Regards,
>>Gavin Towey
>>
>>
>>-----Original Message-----
>>From: Andy Wallace [mailto:awallace@ihouseweb.com]
>>Sent: Tuesday, November 09, 2010 10:34 AM
>>To: mysql list
>>Subject: question about restoring...
>>
>>So, I got a request this morning to recover some specific records for
>>a client. I just want a handful of records from a couple of tables here.
>>I have a copy of the INNODB files for these two tables - is there a way
>>to extract the table contents from these files short of a full import?
>>
>>thanks,
>>ansdy
>>
>>
>>--
>>Andy Wallace
>>iHOUSEweb, Inc.
>>awallace@ihouseweb.com
>>(866) 645-7700 ext 219
>>--
>>There are two ways to build software:
>>Make it so simple that there are obviously no bugs,
>>or make it so complex that there are no obvious bugs.
>>
>>--
>>MySQL General Mailing List
>>For list archives: http://lists.mysql.com/mysql
>>To unsubscribe: http://lists.mysql.com/mysql?unsub=gtowey@ffn.com
>>
>>
>>This message contains confidential information and is intended only for the
>>individual named. If you are not the named addressee, you are notified that
>>reviewing, disseminating, disclosing, copying or distributing this e-mail is
>>strictly prohibited. Please notify the sender immediately by e-mail if you
>>have received this e-mail by mistake and delete this e-mail from your
>>system.
>>E-mail transmission cannot be guaranteed to be secure or error-free as
>>information could be intercepted, corrupted, lost, destroyed, arrive late or
>>incomplete, or contain viruses. The sender therefore does not accept
>>liability
>>for any loss or damage caused by viruses or errors or omissions in the
>>contents
>>of this message, which arise as a result of e-mail transmission.
>>[FriendFinder
>>Networks, Inc., 220 Humboldt Court, Sunnyvale, CA 94089, USA,
>>FriendFinder.com
>>
>>--
>>MySQL General Mailing List
>>For list archives: http://lists.mysql.com/mysql
>>To unsubscribe: http://lists.mysql.com/mysql?unsub=jerry@gii.co.jp
>
>
>
>
>
>This message contains confidential information and is intended only for the
>individual named. If you are not the named addressee, you are notified that
>reviewing, disseminating, disclosing, copying or distributing this e-mail is
>strictly prohibited. Please notify the sender immediately by e-mail if you
>have received this e-mail by mistake and delete this e-mail from your system.
>E-mail transmission cannot be guaranteed to be secure or error-free as
>information could be intercepted, corrupted, lost, destroyed, arrive late or
>incomplete, or contain viruses. The sender therefore does not accept
>liability
>for any loss or damage caused by viruses or errors or omissions in the
>contents
>of this message, which arise as a result of e-mail transmission.
>[FriendFinder
>Networks, Inc., 220 Humboldt Court, Sunnyvale, CA 94089, USA,
>FriendFinder.com




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org

Re: question about restoring...

am 10.11.2010 08:25:14 von Johan De Meersman

--000325576e5222aa810494adc20d
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Nov 9, 2010 at 11:39 PM, Jerry Schwartz wrote:

> Then I guess it's a matter of preference. I'd rather edit a text file than
> build a new instance of MySQL.
>

The way I parse that, you're saying that there is a way to reattach ibd
files to another database ?


--
Bier met grenadyn
Is als mosterd by den wyn
Sy die't drinkt, is eene kwezel
Hy die't drinkt, is ras een ezel

--000325576e5222aa810494adc20d--

RE: question about restoring...

am 10.11.2010 15:34:06 von Jerry Schwartz

------=_NextPart_000_0052_01CB80BA.6CB1DFE0
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable

I must have missed something way back in the beginning. I thought the =
original poster had a dump of his database.

=20

I have no idea if you can attach the innodb files to another database.

=20

I stand corrected.

=20

Regards,

=20

Jerry Schwartz

Global Information Incorporated

195 Farmington Ave.

Farmington, CT 06032

=20

860.674.8796 / FAX: 860.674.8341

E-mail: jerry@gii.co.jp=20

Web site: www.the-infoshop.com =20

=20

From: vegivamp@gmail.com [mailto:vegivamp@gmail.com] On Behalf Of Johan =
De Meersman
Sent: Wednesday, November 10, 2010 2:25 AM
To: Jerry Schwartz
Cc: Gavin Towey; Andy Wallace; mysql list
Subject: Re: question about restoring...

=20

On Tue, Nov 9, 2010 at 11:39 PM, Jerry Schwartz wrote:

Then I guess it's a matter of preference. I'd rather edit a text file =
than
build a new instance of MySQL.


The way I parse that, you're saying that there is a way to reattach ibd =
files to another database ?



--=20
Bier met grenadyn
Is als mosterd by den wyn
Sy die't drinkt, is eene kwezel
Hy die't drinkt, is ras een ezel


------=_NextPart_000_0052_01CB80BA.6CB1DFE0--

Re: question about restoring...

am 12.11.2010 10:05:54 von Johan De Meersman

--90e6ba6e8fe4df8b210494d76558
Content-Type: text/plain; charset=ISO-8859-1

From the OP:

> I have a copy of the INNODB files for these two tables - is there a way
> to extract the table contents from these files short of a full import?
>

I have to agree, that's quite ambiguous. Andy, is it a copy of the innoDB
datafiles, or a database dump that you have ?

In the latter case, it's reasonably simple to extract what you need; in the
former case you're gonna have to try attaching them to a new instance - good
luck with that.



--
Bier met grenadyn
Is als mosterd by den wyn
Sy die't drinkt, is eene kwezel
Hy die't drinkt, is ras een ezel

--90e6ba6e8fe4df8b210494d76558--

Re: question about restoring...

am 12.11.2010 11:42:00 von Ananda Kumar

--0022159755da8503c40494d8bdf1
Content-Type: text/plain; charset=ISO-8859-1

If you just need specific records, you can use "-w" option of mysql to
extract only the specifc records.
Then you can run the dump file into another db.

regards
anandkl

On Fri, Nov 12, 2010 at 2:35 PM, Johan De Meersman wrote:

> From the OP:
>
> > I have a copy of the INNODB files for these two tables - is there a way
> > to extract the table contents from these files short of a full import?
> >
>
> I have to agree, that's quite ambiguous. Andy, is it a copy of the innoDB
> datafiles, or a database dump that you have ?
>
> In the latter case, it's reasonably simple to extract what you need; in the
> former case you're gonna have to try attaching them to a new instance -
> good
> luck with that.
>
>
>
> --
> Bier met grenadyn
> Is als mosterd by den wyn
> Sy die't drinkt, is eene kwezel
> Hy die't drinkt, is ras een ezel
>

--0022159755da8503c40494d8bdf1--

Re: question about restoring...

am 12.11.2010 17:43:42 von Andy Wallace

Thanks, guys. I have copies of the innodb files. The boss went whole hog on
using zfs for everything, so backups of files are readily available. Looks
like I'll be having the db reconstituted...

thanks again

On 11/12/10 1:05 AM, Johan De Meersman wrote:
> From the OP:
>
> I have a copy of the INNODB files for these two tables - is there a way
> to extract the table contents from these files short of a full import?
>
>
> I have to agree, that's quite ambiguous. Andy, is it a copy of the innoDB datafiles, or a database dump that you have ?
>
> In the latter case, it's reasonably simple to extract what you need; in the former case you're gonna have to try attaching them to a new
> instance - good luck with that.
>
>
>
> --
> Bier met grenadyn
> Is als mosterd by den wyn
> Sy die't drinkt, is eene kwezel
> Hy die't drinkt, is ras een ezel

--
Andy Wallace
iHOUSEweb, Inc.
awallace@ihouseweb.com
(866) 645-7700 ext 219
--
There are two ways to build software:
Make it so simple that there are obviously no bugs,
or make it so complex that there are no obvious bugs.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org