在本地的一个数据库创建表时意外的出现了以下错误,说是表已经存在了
Mysql 创建表时错误:Tablespace for table `tablexx` exists. Please DISCARD the tablespace before IMPORT.

但通过desc 查看表信息时又说表不存在
Mysql 创建表时错误:Tablespace for table `tablexx` exists. Please DISCARD the tablespace before IMPORT.

在本地系统搜索表名却发现一个.ibd文件[InnoDB File]
Mysql 创建表时错误:Tablespace for table `tablexx` exists. Please DISCARD the tablespace before IMPORT.

删除了该.ibd文件文件后再重新创建表就没有问题了

参考:




相关文章:

  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-08-14
  • 2022-02-10
  • 2022-12-23
  • 2021-09-28
  • 2021-12-12
猜你喜欢
  • 2022-12-23
  • 2021-05-24
  • 2021-06-29
  • 2021-08-25
  • 2022-12-23
  • 2021-11-08
相关资源
相似解决方案