简体   繁体   English

如何在管理员中克隆数据库

[英]How to clone db in adminer

How to clone db in adminer?如何在管理员中克隆数据库? right now there is no way to copy an existing db to any new db or any existing db to existing db现在无法将现有数据库复制到任何新数据库或将任何现有数据库复制到现有数据库

now if we copy tables from one db to another then there is no way to select functions and stored procedures.现在,如果我们将表从一个数据库复制到另一个数据库,则无法选择函数和存储过程。

so is there any solution for it?那么有什么解决方案吗?

I believe the easiest way (using adminer), is using the "Export" button.我相信最简单的方法(使用管理员)是使用“导出”按钮。

Make sure you select "Routines" and "Events" to also export your triggers and stored procedures.确保选择“例程”和“事件”以导出触发器和存储过程。

After exporting, you might have to create a new database as you wish and then use the Import function, select the file you have exported, and execute.导出后,您可能需要根据需要创建一个新数据库,然后使用导入功能,选择已导出的文件并执行。

If your export dump file is bigger than 128MB, I recommend using mysqldump .如果您的导出转储文件大于 128MB,我建议使用mysqldump

KT,韩国电信,

you can easily export a .sql dump of your database in adminer.您可以在管理员中轻松导出数据库的 .sql 转储。

export database导出数据库

Now, you just have to import your dump and you should be good to go!现在,您只需要导入您的转储,就可以开始使用了!

import database导入数据库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM