mysqldump data only

前端 未结 9 1199
傲寒
傲寒 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:50

    When attempting to export data using the accepted answer I got an error:

    ERROR 1235 (42000) at line 3367: This version of MySQL doesn't yet support 'multiple triggers with the same action time and event for one table'
    

    As mentioned above:

    mysqldump --no-create-info
    

    Will export the data but it will also export the create trigger statements. If like me your outputting database structure (which also includes triggers) with one command and then using the above command to get the data you should also use '--skip-triggers'.

    So if you want JUST the data:

    mysqldump --no-create-info --skip-triggers
    

提交回复
热议问题