开启了Innodb的innodb_file_per_table这个参数之后[innodb_file_per_table = 1],也就是启用InnoDB的独立表空间模式,便于管理.此时,在新建的innodb表的数据库目录下会多出来一个.ibd这个文件.这个就是此时的数据文件了.mysql会把这个innodb表的数据存放在这个文件中.并且每个innodb表此时都会对应这么一个ibd文件. 看官方文档: If innodb_file_per_table is disabled (the defaul
truncate table tablename DROP STORAGE; drop 执行drop table xx 语句drop后的表被放在回收站(user_recyclebin)里,而不是直接删除掉.这样,回收站里的表信息就可以被恢复,或彻底清除.通过查询回收站user_recyclebin获取被删除的表信息,然后使用语句flashback table <user_recyclebin.object_name or user_recyclebin.original_name> to be