Home  >  Q&A  >  body text

mysql - 我用navicat备份数据库,再还原到我的电脑上的时候,为什么只有表,没有数据?(表也丢失了一个)

PHP中文网PHP中文网2741 days ago3034

reply all(4)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 13:31:46

    I agree with the first floor, navicat has two modes. You have to choose the one where the frame and data are saved together. It is best to import it into navicat to avoid errors;

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 13:31:46

    There are two options for backup, table frame and table data; you chose the wrong option

    reply
    0
  • 黄舟

    黄舟2017-04-17 13:31:46

    Use the command. There are so many types of MySQL clients that it’s hard to tell how to operate them

    mysqldump -u root -p test blog > E:\output.sql  -- 导出test.blog表,省略-d表示导出表结构及数据
    mysqldump -u root -p -d test blog >E:\output.sql  -- 导出test.blog表,-d表示仅导出表结构

    reply
    0
  • 黄舟

    黄舟2017-04-17 13:31:46

    Direct command line is better

    reply
    0
  • Cancelreply