mysqldump data only

前端 未结 9 1138
傲寒
傲寒 2020-12-02 03:55

I am looking for the syntax for dumping all data in my mysql database. I don\'t want any table information.

9条回答
  •  庸人自扰
    2020-12-02 04:56

    Would suggest using the following snippet. Works fine even with huge tables (otherwise you'd open dump in editor and strip unneeded stuff, right? ;)

    mysqldump --no-create-info --skip-triggers --extended-insert --lock-tables --quick DB TABLE > dump.sql
    

    At least mysql 5.x required, but who runs old stuff nowadays.. :)

提交回复
热议问题