mysql数据库备份与导入
1.数据库的备份
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。注意:导出的数据里是没有 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';
更多精彩