[Navicat]把1个库的数据迁移到另1个库--数据库备份

需求:

将autotest库中所包含的所有表,从连接centOS7复制1份至localhost.autotest

操作步骤:

1.将centOS7.autotest库中表结构及表数据转为sql语句:centOS7.autotest>>右击>>转存SQL文件>>结构和数据

点击保存

 

2.在localhost库新建数据库autotest >>右击>>运行SQL文件>>选择autotest.sql,运行该文件

之后会在localhost.autotest库生成与centOS7.autotest库一样数据表 及表数据

原文地址:https://www.cnblogs.com/kaerxifa/p/12049766.html