MYSQL Dump only certain rows

后端 未结 3 1812
天命终不由人
天命终不由人 2020-12-12 18:36

I am trying to do a mysql dump of a few rows in my database. I can then use the dump to upload those few rows into another database. The code I have is working, but it dumps

3条回答
  •  悲哀的现实
    2020-12-12 19:20

    You need to quote the "where" clause.

    Try

    mysqldump --opt --user=username --password=password lmhprogram myResumes  --where="date_pulled='2011-05-23'" > test.sql
    

提交回复
热议问题