mysqldump exports only one table

前端 未结 4 1729
清酒与你
清酒与你 2021-01-29 23:58

I was using mysqldump to export the database, like this:

mysqldump -u root -ppassword my_database > c:\\temp\\my_database.sql

Somehow, it on

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 00:23

    try this. There are in general three ways to use mysqldump—

    in order to dump a set of one or more tables,

    shell> mysqldump [options] db_name [tbl_name ...]
    

    a set of one or more complete databases

    shell> mysqldump [options] --databases db_name ...
    

    or an entire MySQL server—as shown here:

    shell> mysqldump [options] --all-databases
    

提交回复
热议问题