【问题标题】:Copy all data from one database to the other MySQL - MariaDB [duplicate]将所有数据从一个数据库复制到另一个 MySQL - MariaDB [重复]
【发布时间】:2021-08-23 07:06:03
【问题描述】:

所以我想为我的网站制作一个测试游乐场,我不会更改原始生产数据,因此我想复制我的所有数据,并将其放入另一个数据库。但是我怎样才能以正确的方式做到这一点呢?

我有一个包含许多名为 testreporting4 的表的数据库,我想将所有数据/结构复制到名为 testreportingdebug 的数据库中>

From testreporting4 to testreportingdebug

目前我的数据库大小约为 3.1GB(不知道这是否会改变)

【问题讨论】:

  • 我想复制我的所有数据,并将其放入另一个数据库。但是我怎样才能以正确的方式做到这一点?备份当前数据库并恢复到另一个数据库将解决。
  • 到目前为止你尝试过什么?你被困在哪里了?

标签: mysql mariadb


【解决方案1】:

我认为最简单的方法是导出数据库然后导入它。有关导出/导入 MariaDB 的更多信息:https://www.digitalocean.com/community/tutorials/how-to-import-and-export-databases-in-mysql-or-mariadb

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-02-24
    • 2011-04-25
    • 1970-01-01
    • 2011-11-07
    • 2011-05-03
    • 1970-01-01
    • 2017-04-06
    相关资源
    最近更新 更多