Connecting Tech Pros Worldwide Help | Site Map

mysqldump select query

  #1  
Old June 27th, 2007, 11:15 PM
Monty Loree
Guest
 
Posts: n/a
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.

  #2  
Old June 29th, 2007, 04:35 AM
lark
Guest
 
Posts: n/a

re: mysqldump select query


Monty Loree wrote:
Quote:
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@sbcdeglobalspam.net
To reply to me directly, delete "despam".
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
error 1036 (table read only) in phpmyadmin shivendravikramsingh answers 2 March 15th, 2008 01:30 PM
mySQL import text file too big? news@celticbear.com answers 4 July 23rd, 2005 07:51 AM
MySQL backup w/o dump? Oliver Spiesshofer answers 5 July 17th, 2005 10:31 AM
Help with mysqldump... Mangina answers 4 July 17th, 2005 04:03 AM