SearchSearch   

mysqldump select query

 
   Webmaster Forums (Home) -> MySQL RSS
Next:  SQLMAIL for MYSQL ?  
Author Message
Monty Loree

External


Since: Jun 27, 2007
Posts: 1



(Msg. 1) Posted: Wed Jun 27, 2007 3:06 pm
Post subject: mysqldump select query
Archived from groups: mailing>database>mysql (more info?)

I am trying to do a dump for a 2 gig table...

I would like to dump the tables in portions so that it's a little
easier to work with...

Can somebody suggest a way to do a mysqldump table query

ie.. mysqldump -u user -p database="MYDATABASE" Query="SELECT * FROM
TABLE WHERE State='NV';"

I'm pretty sure this is possible... I have no idea how to do it.

Thanks in advance.
Back to top
lark

External


Since: Jun 15, 2007
Posts: 14



(Msg. 2) Posted: Fri Jun 29, 2007 3:32 am
Post subject: Re: mysqldump select query
Archived from groups: per prev. post (more info?)

Monty Loree wrote:
> I am trying to do a dump for a 2 gig table...
>
> I would like to dump the tables in portions so that it's a little
> easier to work with...
>
> Can somebody suggest a way to do a mysqldump table query
>
> ie.. mysqldump -u user -p database="MYDATABASE" Query="SELECT * FROM
> TABLE WHERE State='NV';"
>
> I'm pretty sure this is possible... I have no idea how to do it.
>
> Thanks in advance.
>

the statement does not look right so i am not as sure as you are;
however, you can run something like this to backup table at a time:
mysqldump -p -u username databasename tablename > tablename.sql

once you run this, it'll ask you for your password, type it in and
voila, you get a text file of a backed up table.

--
lark -- hamzee.RemoveThis@sbcdeglobalspam.net
To reply to me directly, delete "despam".
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> MySQL
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum