回 帖 发 新 帖 刷新版面

主题:phpmyadmin数据库恢复出错!!!救!

错误
SQL 查询: 

-- --------------------------------------------------------
--
-- 表的结构 `admin`
--
CREATE TABLE IF NOT EXISTS `admin` (

`adminID` int( 255 ) NOT NULL AUTO_INCREMENT COMMENT '管理员ID',
`adminname` varchar( 255 ) NOT NULL COMMENT '管理员用户名',
`adminpwd` varchar( 255 ) NOT NULL COMMENT '管理员密码',
PRIMARY KEY ( `adminID` ) 
) ENGINE = InnoDB DEFAULT CHARSET = utf8 AUTO_INCREMENT =2;



MySQL 返回: 

#1005 - Can't create table '.\lab\admin.frm' (errno: 121) 

回复列表 (共1个回复)

沙发

errno 121 means a duplicate key error. Probably the table already exists in the InnoDB internal data dictionary, though the .frm file for the table has been deleted. This is the most common reason for getting errno 121 in table creation. Another possible reason is a name conflict in a foreign key constraint name. Constraint names must be unique in a database, like table names are.

我来回复

您尚未登录,请登录后再回复。点此登录或注册