mysql数据库备份与导入

1.数据库的备份

注意:导出的数据里是没有 use mydb; 这句话

*****************************************************************************************************************************************************

2.数据库的导入

常用的两种 

  1. source命令

2.mysql命令

使用该方法记得要先在被导出的sql文件中加入这句,选择你要导入的数据库

 

 

 

 

**********************************************************************************************************************

附:

如何查询 auto_increment

select auto_increment from information_schema.tables where table_schema='mydb2' and table_name='mytb';

原文地址:https://www.cnblogs.com/youaremylife/p/9295180.html