mysql 1005 - can't create table_创建表时报错ERROR 1005 (HY000): Can't create table'' (errno: -1)...

错误信息:

InnoDB: Warning: trying to init to the tablespace memory cache

InnoDB: a tablespace 15385 of name './PIXOS_DB/TB_COMPANY.ibd',

InnoDB: but a tablespace 15383 of the same name

InnoDB: already exists in the tablespace memory cache!

InnoDB: We assume that InnoDB did a crash recovery, and you had

InnoDB: an .ibd file for which the table did not exist in the

InnoDB: InnoDB internal data dictionary in the ibdata files.

InnoDB: We assume that you later removed the .ibd and .frm files,

InnoDB: and are now trying to recreate the table. We now remove the

InnoDB: conflicting tablespace object from the memory cache and try

InnoDB: the init again.

120830 13:55:25  InnoDB: Error: table `PIXOS_DB`.`TB_COMPANY` already exists in InnoDB internal

InnoDB: data dictionary. Have you deleted the .frm file

InnoDB: and not used DROP TABLE? Have you used DROP DATABASE

InnoDB: for InnoDB tables in MySQL version <= 3.23.43?

InnoDB: See the Restrictions section of the InnoDB manual.

InnoDB: You can drop the orphaned table inside InnoDB by

InnoDB: creating an InnoDB table with the same name in another

InnoDB: database and copying the .frm file to the current database.

InnoDB: Then MySQL thinks the table exists, and DROP TABLE will

InnoDB: succeed.

InnoDB: You can look for further help from

InnoDB: http://dev.mysql.com/doc/refman/ ... roubleshooting.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值