sql - Is it possible to backup records from a particular MySQL table a few at time with mysqldump? It's a table with a lot of records -
so have table 200,000 records want clean up. want up. i've tried using phpmyadmin interface script keeps timing out given huge size of database. i've event tried backing 5000 @ time , doesn't work.
i'm wondering if i'll have better time doing command line using mysqldump command. however, i'm having hard time coming command to:
- back particular database (say
db1
) - back particular table in
db1
(saytable1
) - back few records @ time (say 2500)
i know issue not connectivity issue because can connect it.
here's have far:
mysqldump --opt -h somedomain.com -u dbuser -p dbpass db1 table1 > ./my-backup-file.sql
any appreciated.
update:
i know problem is. sign-up form left open sign , spam bot found , hammered sign-up requests thereby creating ~ 199,980 new records in database. know they're standard varchar , text data being inserted. want know easiest, pain, free way clean up.
you use --where
argument this:
--where="1=1 limit 0, 2500"
this append limit clause @ end of query
Comments
Post a Comment